/* Lilac gradient from movin.design: https://movin.design/gradients/lilac/ */
@property --gradient-phase {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@keyframes gradient-phase {
to { --gradient-phase: 360deg; }
}
.gradient {
background-color: #fdfbff;
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.045'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"),
radial-gradient(72% 72% at calc(24% + 3% * cos(93deg - var(--gradient-phase))) calc(26% + 3% * sin(93deg - var(--gradient-phase))), #ffffff 0%, #ffffffc8 30%, #ffffff5a 60%, #ffffff00 100%),
radial-gradient(35.06% 25.67% at calc(14% + 3% * cos(var(--gradient-phase) + 315deg)) calc(96% + 3% * sin(var(--gradient-phase) + 315deg)), #bfa4f1 0%, #bfa4f1c8 30%, #bfa4f15a 60%, #bfa4f100 100%),
radial-gradient(34% 34% at calc(104% + 3% * cos(178deg - var(--gradient-phase))) calc(106% + 3% * sin(178deg - var(--gradient-phase))), #8559e3 0%, #8559e3c8 30%, #8559e35a 60%, #8559e300 100%),
radial-gradient(circle at calc(26% + 3% * cos(var(--gradient-phase) + 40deg)) calc(30% + 3% * sin(var(--gradient-phase) + 40deg)), #f8f4ffe6 0%, #f9f6ffe6 8.94%, #f0e9fee6 11.86%, #f2ecfee6 19.34%, #e8dffce6 22.26%, #ebe4fde6 29.74%, #e0d4fbe6 32.66%, #e5dbfce6 40.14%, #d8caf9e6 43.06%, #ded2fae6 50.54%, #d1bff8e6 53.46%, #d8c9f9e6 60.94%, #c9b4f6e6 63.86%, #d1c0f8e6 71.34%, #c2aaf4e6 74.26%, #cbb7f6e6 81.74%, #ba9ff1e6 84.66%, #c4aef4e6 92.14%, #b394efe6 95.06%, #bea5f2e6 102.54%, #bea5f200 105.46%);
background-blend-mode: overlay, normal, normal, normal, normal;
animation: gradient-phase 30s 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.