|
| 1 | +* { |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +body { |
| 8 | + background: radial-gradient(circle at bottom, #020024, #000 90%); |
| 9 | + overflow: hidden; |
| 10 | + height: 100vh; |
| 11 | + display: flex; |
| 12 | + justify-content: center; |
| 13 | + align-items: center; |
| 14 | +} |
| 15 | + |
| 16 | +.aurora { |
| 17 | + position: relative; |
| 18 | + width: 100vw; |
| 19 | + height: 100vh; |
| 20 | + overflow: hidden; |
| 21 | +} |
| 22 | + |
| 23 | +/* Base thread styling */ |
| 24 | +.thread { |
| 25 | + position: absolute; |
| 26 | + width: 200%; |
| 27 | + height: 400px; |
| 28 | + filter: blur(80px); |
| 29 | + opacity: 0.8; |
| 30 | + animation: flow 12s ease-in-out infinite alternate; |
| 31 | + background-size: 300% 300%; |
| 32 | + mix-blend-mode: screen; |
| 33 | +} |
| 34 | + |
| 35 | +/* Different aurora color gradients */ |
| 36 | +.t1 { |
| 37 | + top: 20%; |
| 38 | + background: linear-gradient(120deg, #00ffff, #00ff99, #0066ff); |
| 39 | + animation-delay: 0s; |
| 40 | +} |
| 41 | +.t2 { |
| 42 | + top: 40%; |
| 43 | + background: linear-gradient(120deg, #ff00ff, #ff0080, #8000ff); |
| 44 | + animation-delay: 3s; |
| 45 | +} |
| 46 | +.t3 { |
| 47 | + top: 60%; |
| 48 | + background: linear-gradient(120deg, #ff6600, #ffff00, #ff3300); |
| 49 | + animation-delay: 1.5s; |
| 50 | +} |
| 51 | +.t4 { |
| 52 | + top: 80%; |
| 53 | + background: linear-gradient(120deg, #00ffcc, #00ffff, #33ccff); |
| 54 | + animation-delay: 2s; |
| 55 | +} |
| 56 | + |
| 57 | +/* Animation for shifting aurora movement */ |
| 58 | +@keyframes flow { |
| 59 | + 0% { |
| 60 | + transform: translateX(-50%) rotate(0deg); |
| 61 | + background-position: 0% 50%; |
| 62 | + } |
| 63 | + 50% { |
| 64 | + transform: translateX(0%) rotate(2deg); |
| 65 | + background-position: 100% 50%; |
| 66 | + } |
| 67 | + 100% { |
| 68 | + transform: translateX(50%) rotate(-2deg); |
| 69 | + background-position: 0% 50%; |
| 70 | + } |
| 71 | +} |
| 72 | + |
| 73 | +/* Add subtle shimmer overlay */ |
| 74 | +.aurora::after { |
| 75 | + content: ""; |
| 76 | + position: absolute; |
| 77 | + width: 100%; |
| 78 | + height: 100%; |
| 79 | + background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%); |
| 80 | + mix-blend-mode: overlay; |
| 81 | + pointer-events: none; |
| 82 | +} |
0 commit comments