|
| 1 | +* { |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +body { |
| 8 | + height: 100vh; |
| 9 | + width: 100vw; |
| 10 | + background: radial-gradient(circle at center, #010006 0%, #000 100%); |
| 11 | + overflow: hidden; |
| 12 | + display: flex; |
| 13 | + justify-content: center; |
| 14 | + align-items: center; |
| 15 | +} |
| 16 | + |
| 17 | +.nebula { |
| 18 | + position: relative; |
| 19 | + width: 600px; |
| 20 | + height: 600px; |
| 21 | + filter: blur(30px) contrast(120%); |
| 22 | +} |
| 23 | + |
| 24 | +/* Base wave layer */ |
| 25 | +.wave { |
| 26 | + position: absolute; |
| 27 | + top: 50%; |
| 28 | + left: 50%; |
| 29 | + width: 100px; |
| 30 | + height: 100px; |
| 31 | + transform: translate(-50%, -50%); |
| 32 | + border-radius: 50%; |
| 33 | + background: conic-gradient( |
| 34 | + from 0deg, |
| 35 | + rgba(0,255,255,0.8), |
| 36 | + rgba(255,0,255,0.6), |
| 37 | + rgba(255,255,0,0.6), |
| 38 | + rgba(0,255,255,0.8) |
| 39 | + ); |
| 40 | + opacity: 0.7; |
| 41 | + mix-blend-mode: screen; |
| 42 | + animation: expand 6s ease-in-out infinite; |
| 43 | +} |
| 44 | + |
| 45 | +/* Stagger each wave for echo effect */ |
| 46 | +.w1 { animation-delay: 0s; } |
| 47 | +.w2 { animation-delay: 1s; } |
| 48 | +.w3 { animation-delay: 2s; } |
| 49 | +.w4 { animation-delay: 3s; } |
| 50 | +.w5 { animation-delay: 4s; } |
| 51 | + |
| 52 | +/* Expansion, fading and hue rotation */ |
| 53 | +@keyframes expand { |
| 54 | + 0% { |
| 55 | + transform: translate(-50%, -50%) scale(0.2) rotate(0deg); |
| 56 | + opacity: 0.9; |
| 57 | + filter: hue-rotate(0deg); |
| 58 | + } |
| 59 | + 50% { |
| 60 | + transform: translate(-50%, -50%) scale(2.5) rotate(180deg); |
| 61 | + opacity: 0.4; |
| 62 | + filter: hue-rotate(120deg); |
| 63 | + } |
| 64 | + 100% { |
| 65 | + transform: translate(-50%, -50%) scale(4) rotate(360deg); |
| 66 | + opacity: 0; |
| 67 | + filter: hue-rotate(240deg); |
| 68 | + } |
| 69 | +} |
| 70 | + |
| 71 | +/* Add subtle stars background */ |
| 72 | +body::before { |
| 73 | + content: ""; |
| 74 | + position: absolute; |
| 75 | + inset: 0; |
| 76 | + background-image: radial-gradient(white 1px, transparent 1px); |
| 77 | + background-size: 3px 3px; |
| 78 | + opacity: 0.04; |
| 79 | +} |
0 commit comments