/* Polaris gradient from movin.design: https://movin.design/gradients/polaris/ */
@property --gradient-phase {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@keyframes gradient-phase {
to { --gradient-phase: 360deg; }
}
.gradient {
background-color: #040818;
background-image:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2.6 0 0 0 -0.8 2.6 0 0 0 -0.8 2.6 0 0 0 -0.8 0 0 0 0 0.075'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"),
radial-gradient(134.54% 47.57% at calc(50% + 3% * cos(var(--gradient-phase) + 145deg)) calc(-30% + 3% * sin(var(--gradient-phase) + 145deg)), #02040e 0%, #02040ec8 30%, #02040e5a 60%, #02040e00 100%),
radial-gradient(175.63% 68.9% at calc(50% + 3% * cos(8deg - var(--gradient-phase))) calc(122% + 3% * sin(8deg - var(--gradient-phase))), #02040e 0%, #02040ec8 30%, #02040e5a 60%, #02040e00 100%),
radial-gradient(19.32% 82.82% at calc(82% + 3% * cos(var(--gradient-phase) + 230deg)) calc(28% + 3% * sin(var(--gradient-phase) + 230deg)), #e060b8 0%, #e060b8c8 30%, #e060b85a 60%, #e060b800 100%),
radial-gradient(24.15% 103.53% at calc(58% + 3% * cos(93deg - var(--gradient-phase))) calc(48% + 3% * sin(93deg - var(--gradient-phase))), #6f5cf2 0%, #6f5cf2c8 30%, #6f5cf25a 60%, #6f5cf200 100%),
radial-gradient(23.18% 99.39% at calc(36% + 3% * cos(var(--gradient-phase) + 315deg)) calc(30% + 3% * sin(var(--gradient-phase) + 315deg)), #1aa6d8 0%, #1aa6d8c8 30%, #1aa6d85a 60%, #1aa6d800 100%),
radial-gradient(25.11% 107.67% at calc(14% + 3% * cos(178deg - var(--gradient-phase))) calc(50% + 3% * sin(178deg - var(--gradient-phase))), #22d8a0 0%, #22d8a0c8 30%, #22d8a05a 60%, #22d8a000 100%),
radial-gradient(136.41% 59.38% at calc(50% + 3% * cos(var(--gradient-phase) + 40deg)) calc(20% + 3% * sin(var(--gradient-phase) + 40deg)), #10266a 0%, #10266ac8 30%, #10266a5a 60%, #10266a00 100%);
background-blend-mode: overlay, normal, normal, normal, normal, normal, normal, normal;
animation: gradient-phase 28s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.gradient { animation: none; }
}
Pure CSS: one registered property turns once per loop. Browsers without it show the first frame, and visitors who ask for less motion get the same still.