Loader by Juanes200122
#e8e8e8
1.cube-loader { 2 position: relative; 3 /* u can choose any size */ 4 width: 75px; 5 height: 75px; 6 transform-style: preserve-3d; 7 transform: rotateX(-30deg); 8 animation: animate 4s linear infinite; 9} 10 11@keyframes animate { 12 0% { 13 transform: rotateX(-30deg) rotateY(0); 14 } 15 16 100% { 17 transform: rotateX(-30deg) rotateY(360deg); 18 } 19} 20 21.cube-loader .cube-wrapper { 22 position: absolute; 23 width: 100%; 24 height: 100%; 25 /* top: 0; 26 left: 0; */ 27 transform-style: preserve-3d; 28} 29 30.cube-loader .cube-wrapper .cube-span { 31 position: absolute; 32 width: 100%; 33 height: 100%; 34 /* top: 0; 35 left: 0; */ 36 /* width 75px / 2 = 37.5px */ 37 transform: rotateY(calc(90deg * var(--i))) translateZ(37.5px); 38/* Gradiente amarillo */ 39 background: linear-gradient(to bottom, 40 hsl(60, 100%, 25.1%) 0%, 41 hsl(60, 100%, 32.06%) 5.5%, 42 hsl(60, 100%, 36.88%) 12.1%, 43 hsl(60, 100%, 40.7%) 19.6%, 44 hsl(60, 100%, 43.88%) 27.9%, 45 hsl(60, 100%, 46.58%) 36.6%, 46 hsl(60, 100%, 48.91%) 45.6%, 47 hsl(60, 100%, 50.91%) 54.6%, 48 hsl(60, 100%, 52.62%) 63.4%, 49 hsl(60, 100%, 54.08%) 71.7%, 50 hsl(60, 100%, 55.29%) 79.4%, 51 hsl(60, 100%, 56.28%) 86.2%, 52 hsl(60, 100%, 57.04%) 91.9%, 53 hsl(60, 100%, 57.59%) 96.3%, 54 hsl(60, 100%, 57.93%) 99%, 55 hsl(60, 100%, 58.04%) 100%); 56} 57 58.cube-top { 59 position: absolute; 60 width: 75px; 61 height: 75px; 62 background: hsl(320, 2%, 24%) 0%; 63 /* width 75px / 2 = 37.5px */ 64 transform: rotateX(90deg) translateZ(37.5px); 65 transform-style: preserve-3d; 66} 67 68.cube-top::before { 69 content: ''; 70 position: absolute; 71 /* u can choose any size */ 72 width: 75px; 73 height: 75px; 74 background: hsl(0, 0%, 0%) 19.6%; 75 transform: translateZ(-90px); 76 filter: blur(10px); 77 box-shadow: 0 0 10px #323232, 78 0 0 20px hsl(63, 42%, 41%) 19.6%, 79 0 0 30px #323232, 80 0 0 40px hsl(70, 42%, 41%) 19.6%; 81}
395 views
Variation of aloader
MIT License