Y-axis 3D transform with CSS3

CSSWeb DevelopmentFront End Technology

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

Example

Live Demo

<html>
   <head>
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#yDiv {
            -webkit-transform: rotateY(150deg);
            /* Safari */
            transform: rotateY(150deg);
            /* Standard syntax */
         }
      </style>
   </head>
   <body>
      <div>
         tutorialspoint.com
      </div>
      <p>Rotate Y axis</p>
      <div id = "yDiv">
         tutorialspoint.com.
      </div>
   </body>
</html>
raja
Published on 08-May-2018 17:49:31
Advertisements