piffy

CSS transform demo

Jan 3rd, 2021 (edited)
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.90 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Demo trasformazione</title>
  4. <style>
  5. td {width:20%;}
  6. div {border: 2px solid red; background-color: #FFCC00;
  7.       width: 100px; height: 80px;}
  8.      
  9. div.a { transform: rotate(40deg);}
  10. div.b {  transform: skewX(20deg);}
  11. div.c { transform: scaleY(1.5); }
  12. div.d { transform: translate(10px,10px); }
  13. div.tutto { transform: rotate(40deg) skewX(20deg)  scaleY(1.5) translate(10px,10px); }
  14.  
  15. </style>
  16. <body>
  17. <table>
  18.   <tr style= "height: 80px;">
  19.     <th>Rotate</th>
  20.     <th>Skew</th>
  21.     <th>Scale</th>
  22.     <th>Translate</th>
  23.     <th>Multiplo</th>
  24.   </tr>
  25.   <tr>
  26.     <td><div class="a">Rotazione 40 gradi</div></td>
  27.     <td><div class="b">Distorsione Asse X 20 gradi</div></td>
  28.     <td><div class="c">Scalatura&nbsp;Y x1.5</div></td>
  29.     <td><div class="d">Spostamento di 10 pixel</div></td>
  30.     <td><div class="tutto">Troppo!!</div></td>
  31.   </tr>
  32. </table>
  33.  
  34.  
  35. </body>
  36.  
  37. <html>
Add Comment
Please, Sign In to add comment