Guest User

Untitled

a guest
Jul 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. body, html { height: 100%; width: 100%; }
  2.  
  3. body {
  4. display: -moz-box;
  5. display: -webkit-box;
  6. display: box;
  7.  
  8. -moz-box-orient: horizontal;
  9. -webkit-box-orient: horizontal;
  10. box-orient: horizontal;
  11.  
  12. -moz-box-pack: center;
  13. -moz-box-align: center;
  14.  
  15. -webkit-box-pack: center;
  16. -webkit-box-align: center;
  17.  
  18. box-pack: center;
  19. box-align: center;
  20. }
  21.  
  22. .box {
  23. background: #e3e3e3;
  24. border: 1px dashed #666;
  25. margin: auto;
  26. width: 400px;
  27. height: 200px;
  28. cursor: pointer;
  29. position: relative;
  30.  
  31. -webkit-transition: all 1s;
  32. -moz-transition: all 1s;
  33. transition: all 1s;
  34. }
  35.  
  36. .box::after {
  37. content: '';
  38. position: absolute;
  39.  
  40. width: 70%;
  41. height: 10px;
  42. bottombottom: 0;
  43. left: 15%;
  44.  
  45. z-index: -1;
  46.  
  47. -webkit-box-shadow: 0 9px 20px rgba(0,0,0,.4);
  48. -moz-box-shadow: 0 9px 20px rgba(0,0,0,.4);
  49. box-shadow: 0 9px 20px rgba(0,0,0,.4);
  50. }
  51.  
  52. .box > div {
  53. background: #e3e3e3;
  54.  
  55. position: absolute;
  56. width: 100%; height: 100%;
  57. top: 0; left: 0;
  58.  
  59. font: 45px/200px bold helvetica, arial, sans-serif;
  60. text-align: center;
  61.  
  62. -webkit-transition: all .5s ease-in-out;
  63. -moz-transition: all .5s ease-in-out;
  64. transition: all .5s ease-in-out;
  65. }
  66.  
  67.  
  68. /* Make sure we see the front side first */
  69. .box > div:first-child {
  70. position: relative;
  71. z-index: 2;
  72. }
  73.  
  74. .box:hover {
  75. -webkit-transform: rotateY(180deg);
  76. -moz-transform: rotateY(180deg);
  77. transform: rotateY(180deg);
  78. }
  79.  
  80. /* Hide the front-side when hovered */
  81. .box:hover > div:first-child {
  82. opacity: 0;
  83. }
  84.  
  85. .box:hover div:last-child {
  86. -webkit-transform: rotateY(180deg);
  87. -moz-transform: rotateY(180deg);
  88. transform: rotateY(180deg);
  89. }
Add Comment
Please, Sign In to add comment