Z-axis 3D transform with CSS3

CSSWeb DevelopmentFront End Technology

You can try to run the following code to implement Z-axis 3D transform with CSS3:

Example

Live Demo

<html>
   <head>
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#zDiv {
            -webkit-transform: rotateZ(90deg);
            /* Safari */
            transform: rotateZ(90deg);
            /* Standard syntax */
         }
      </style>
   </head>
   <body>
      <p>rotate Z axis</p>
      <div id = "zDiv">
         tutorialspoint.com.
      </div>
   </body>
</html>

Output

raja
Published on 16-May-2018 02:05:27
Advertisements