Matrix transforms with another direction - HTML CSS CSS Property

HTML CSS examples for CSS Property:transform

Description

Matrix transforms with another direction

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         div {<!--from  www. j  ava2  s . co m-->
            width: 300px;
            height: 100px;
            background-color:red;
            border: 1px solid black;
         }
         div#myDiv2 {
            /* IE 9 */
            -ms-transform: matrix(1, 0, 0.5, 1, 150, 0);

            /* Safari */
            -webkit-transform: matrix(1, 0, 0.5, 1, 150, 0);

            /* Standard syntax */
            transform: matrix(1, 0, 0.5, 1, 150, 0);
         }
      </style>
   </head>
   <body>
      <div>
      book 2s .com.
      </div>

      <div id="myDiv2">
      book 2s .com
      </div>
   </body>
</html>

Related Tutorials