Guest User

Untitled

a guest
Oct 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. /**
  2. * The first commented line is your dabblet’s title
  3. */
  4.  
  5.  
  6. body {font-family: georgia, serif; background: #ccc;}
  7.  
  8. @-webkit-keyframes girando {
  9. from,20% { -webkit-transform: rotateY(0deg); }
  10. 30%,40% { -webkit-transform: rotateY(90deg); }
  11. 50%,60% { -webkit-transform: rotateY(180deg); }
  12. 70%,80% { -webkit-transform: rotateY(270deg); }
  13. 90%,to { -webkit-transform: rotateY(360deg); }
  14. }
  15. @-moz-keyframes girando {
  16. from,20% { -moz-transform: rotateY(0deg); }
  17. 30%,40% { -moz-transform: rotateY(90deg); }
  18. 50%,60% { -moz-transform: rotateY(180deg); }
  19. 70
  20. 0% { -moz-transform: rotateY(270deg); }
  21. 90%,to { -moz-transform: rotateY(360deg); }
  22. }
  23.  
  24. #container {
  25. margin: 30px auto;
  26. -webkit-perspective: 500px;
  27. -moz-perspective: 500px;
  28. perspective: 500px;
  29. }
  30.  
  31. #girando {
  32. margin: 10px auto;
  33. width: 300px;
  34. padding: 30px;
  35. -webkit-animation-name: girando;
  36. -moz-animation-name: girando;
  37. animation-name: girando;
  38. -webkit-animation-timing-function: ease-out;
  39. -moz-animation-timing-function: ease-out;
  40. animation-timing-function: ease-out;
  41. -webkit-animation-iteration-count: infinite;
  42. -moz-animation-iteration-count: infinite;
  43. animation-iteration-count: infinite;
  44. -webkit-animation-duration: 10s;
  45. -moz-animation-duration: 10s;
  46. animation-duration: 10s;
  47. -webkit-transform-style: preserve-3d;
  48. -moz-transform-style: preserve-3d;
  49. transform-style: preserve-3d;
  50. }
  51. #girando:hover {
  52. -webkit-animation-play-state: paused;
  53. -moz-animation-play-state: paused;
  54. -ms-animation-play-state: paused;
  55. animation-play-state: paused;
  56. }
  57. #girando span {
  58. position: absolute;
  59. width: 320px;
  60. height: 260px;
  61. overflow: hidden;
  62. border: 2px solid #fff;
  63. font-weight: bold;
  64. font-size: 120px;
  65. text-align: center;
  66. text-shadow: #fff 2px 2px 1px;
  67. opacity: 0.8;
  68. } #uno { -webkit-transform: rotateY(0deg) translateZ(160px); -moz-transform: rotateY(0deg) translateZ(160px); transform: rotateY(0deg) translateZ(160px); } #dos { -webkit-transform: rotateY(-90deg) translateZ(160px); -moz-transform: rotateY(-90deg) translateZ(160px); transform: rotateY(-90deg) translateZ(160px); } #tres { -webkit-transform: rotateY(-180deg) translateZ(160px); -moz-transform: rotateY(-180deg) translateZ(160px); transform: rotateY(-180deg) translateZ(160px); } #cuatro { -webkit-transform: rotateY(-270deg) translateZ(160px); -moz-transform: rotateY(-270deg) translateZ(160px); transform: rotateY(-270deg) translateZ(160px); }
Add Comment
Please, Sign In to add comment