|
| 1 | +/* ====== GLOBAL STYLES ====== */ |
| 2 | +* { |
| 3 | + box-sizing: border-box; |
| 4 | +} |
| 5 | + |
| 6 | +body { |
| 7 | + height: 100vh; |
| 8 | + margin: 0; |
| 9 | + display: flex; |
| 10 | + justify-content: center; |
| 11 | + align-items: center; |
| 12 | + background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1e 100%); |
| 13 | + font-family: 'Poppins', sans-serif; |
| 14 | +} |
| 15 | + |
| 16 | +/* ====== LOADER CONTAINER ====== */ |
| 17 | +.loader { |
| 18 | + display: flex; |
| 19 | + justify-content: center; |
| 20 | + align-items: center; |
| 21 | + position: relative; |
| 22 | + width: 200px; |
| 23 | + height: 100px; |
| 24 | +} |
| 25 | + |
| 26 | +/* ====== CIRCLES ====== */ |
| 27 | +.circle { |
| 28 | + position: absolute; |
| 29 | + border-radius: 50%; |
| 30 | + width: 16px; |
| 31 | + height: 16px; |
| 32 | + background: linear-gradient(135deg, #fcfbfe, #e43754); |
| 33 | + box-shadow: 0 0 10px #e43754; |
| 34 | + animation: figureEight 1.5s linear infinite; |
| 35 | +} |
| 36 | + |
| 37 | +.circle:nth-child(2) { |
| 38 | + animation-delay: 0.1s; |
| 39 | + width: 13px; |
| 40 | + height: 13px; |
| 41 | + opacity: 0.8; |
| 42 | +} |
| 43 | + |
| 44 | +.circle:nth-child(3) { |
| 45 | + animation-delay: 0.2s; |
| 46 | + width: 11px; |
| 47 | + height: 11px; |
| 48 | + opacity: 0.6; |
| 49 | +} |
| 50 | + |
| 51 | +.circle:nth-child(4) { |
| 52 | + animation-delay: 0.3s; |
| 53 | + width: 10px; |
| 54 | + height: 10px; |
| 55 | + opacity: 0.5; |
| 56 | +} |
| 57 | + |
| 58 | +.circle:nth-child(5) { |
| 59 | + animation-delay: 0.4s; |
| 60 | + width: 10px; |
| 61 | + height: 10px; |
| 62 | + opacity: 0.4; |
| 63 | +} |
| 64 | + |
| 65 | +.circle:nth-child(6) { |
| 66 | + animation-delay: 0.5s; |
| 67 | + width: 10px; |
| 68 | + height: 10px; |
| 69 | + opacity: 0.3; |
| 70 | +} |
| 71 | + |
| 72 | +.circle:nth-child(7) { |
| 73 | + animation-delay: 0.6s; |
| 74 | + width: 10px; |
| 75 | + height: 10px; |
| 76 | + opacity: 0.25; |
| 77 | +} |
| 78 | + |
| 79 | +.circle:nth-child(8) { |
| 80 | + animation-delay: 0.7s; |
| 81 | + width: 10px; |
| 82 | + height: 10px; |
| 83 | + opacity: 0.2; |
| 84 | +} |
| 85 | + |
| 86 | +/* ====== ANIMATION ====== */ |
| 87 | +@keyframes figureEight { |
| 88 | + 0%, 100% { |
| 89 | + transform: translate(0, 0); |
| 90 | + } |
| 91 | + 12.5% { |
| 92 | + transform: translate(50px, -25px); |
| 93 | + } |
| 94 | + 25% { |
| 95 | + transform: translate(100px, 0); |
| 96 | + } |
| 97 | + 37.5% { |
| 98 | + transform: translate(50px, 25px); |
| 99 | + } |
| 100 | + 50% { |
| 101 | + transform: translate(0, 0); |
| 102 | + } |
| 103 | + 62.5% { |
| 104 | + transform: translate(-50px, -25px); |
| 105 | + } |
| 106 | + 75% { |
| 107 | + transform: translate(-100px, 0); |
| 108 | + } |
| 109 | + 87.5% { |
| 110 | + transform: translate(-50px, 25px); |
| 111 | + } |
| 112 | +} |
0 commit comments