Advertisement
Guest User

Untitled

a guest
May 11th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title></title>
  4. <style type="text/css">
  5. .tile {
  6. -webkit-transform-style: preserve-3d;
  7. -webkit-perspective: 1000;
  8. width: 250px;
  9. height: 250px;
  10. position: relative;
  11. -webkit-transform: scale(1.0);
  12. transition:all .4s ease-in-out;
  13. }
  14.  
  15. .front, .back {
  16. position: absolute;
  17. -webkit-backface-visibility: hidden;
  18. -webkit-transition: -webkit-transform .5s ease-in;
  19. width: 100%;
  20. height: 100%;
  21. padding: 20px;
  22. font-family: Helvetica, Arial, sans-serif;
  23. color: #fff;
  24. font-weight: bold;
  25. box-shadow: inset 0px 0px 20px rgba(0,0,0,0.4);
  26. border-radius: 4px;
  27. }
  28.  
  29. .back {
  30. -webkit-transform: rotateY(-180deg);
  31. background: url('http://www.inserthtml.com/goose.jpeg');
  32. overflow: hidden;
  33. }
  34.  
  35. .front {
  36. background: #7f37c2;
  37. }
  38.  
  39. .tile:hover {
  40. -webkit-transform: scale3d(1.5,1.5,1.5) translateX(0px) translateY(0px) translateZ(1000px);
  41. left: 108px;
  42. top: 53px;
  43. z-index: 5;
  44. }
  45.  
  46. .tile:hover .back {
  47. -webkit-transform: rotateY(0deg);
  48. }
  49.  
  50. .tile:hover .front {
  51. -webkit-transform: rotateY(180deg);
  52. }
  53.  
  54. </style>
  55. </head>
  56. <body>
  57.  
  58. <div class="tile">
  59. <div class="front">Hello I am the front...</div>
  60. <div class="back">
  61. Some plain text
  62. <table>
  63. <tr><td>Test test test</td></tr>
  64. </table>
  65.  
  66. </div>
  67. </div>
  68.  
  69. </body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement