Advertisement
NubeColectiva

estilos.css

Jul 28th, 2022
1,510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.08 KB | None | 0 0
  1. .contenedor {
  2.     display: flex;
  3.     justify-content: center;
  4.     align-items: center;
  5.     padding-top: 150px;
  6.     padding-bottom: 150px;
  7. }
  8.  
  9. .dado {
  10.     position: relative;
  11.     width: 200px;
  12.     height: 200px;
  13.     transform-style: preserve-3d;
  14.     transform: rotateY(185deg) rotateX(150deg) rotateZ(315deg);
  15.     animation: rotate 5s linear infinite;
  16. }
  17.  
  18. .lado {
  19.     width: 100%;
  20.     height: 100%;
  21.     background: #da0060;
  22.     border: 2px solid black;
  23.     position: absolute;
  24.     opacity: 0.7;
  25.     display: flex;
  26.     align-items: center;
  27.     justify-content: center;
  28. }
  29.  
  30. .lado:before {
  31.     content: "";
  32.     width: 20%;
  33.     height: 20%;
  34.     background: black;
  35.     border-radius: 50%;
  36. }
  37.  
  38. .base {
  39.     width: 100%;
  40.     height: 100%;
  41.     transform: translateY(73px) rotateX(90deg);
  42.     border: 0;
  43.     background: blue;
  44. }
  45.  
  46. .uno {
  47.     transform: translateZ(100px);
  48. }
  49.  
  50. .dos {
  51.     transform: translateX(-100px) rotateY(-90deg);
  52. }
  53.  
  54. .dos:before {
  55.     background: transparent;
  56.     box-shadow: #000 -50px -50px 0px 0px, #000 50px 50px 0px 0px;
  57. }
  58.  
  59. .tres {
  60.     transform: translateY(100px) rotateX(90deg);
  61. }
  62.  
  63. .tres:before {
  64.     box-shadow: #000 -50px 50px 0px 0px, #000 50px -50px 0px 0px;
  65. }
  66.  
  67. .cuatro {
  68.     transform: translateY(-100px) rotateX(90deg);
  69. }
  70.  
  71. .cuatro:before {
  72.     background: transparent;
  73.     box-shadow: #000 -50px 50px 0px 0px, #000 -50px -50px 0px 0px, #000 50px 50px 0px 0px, #000 50px -50px 0px 0px;
  74. }
  75.  
  76. .cinco {
  77.     transform: translateX(100px) rotateY(90deg);
  78. }
  79.  
  80. .cinco:before {
  81.     box-shadow: #000 -50px -50px 0px 0px, #000 -50px 50px 0px 0px, #000 50px -50px 0px 0px, #000 50px 50px 0px 0px;
  82. }
  83.  
  84. .seis {
  85.     transform: translateZ(-100px);
  86. }
  87.  
  88. .seis:before {
  89.     background: transparent;
  90.   box-shadow: #000 -50px -50px 0px 0px, #000 -50px 0px 0px 0px, #000 -50px 50px 0px 0px, #000 50px -50px 0px 0px, #000 50px 0px 0px 0px, #000 50px 50px 0px 0px;
  91. }
  92.  
  93. @keyframes rotate {
  94.     from {
  95.         transform: rotateY(0) rotateX(30deg) rotateZ(30deg);
  96.     }
  97.     to {
  98.         transform: rotateY(360deg) rotateX(30deg) rotateZ(30deg);
  99.     }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement