/* Amethyst gradient from movin.design: https://movin.design/gradients/amethyst/ */
@property --gradient-phase {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@keyframes gradient-phase {
to { --gradient-phase: 360deg; }
}
.gradient {
background-color: #8a42f0;
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(30% 30% at calc(6% + 3% * cos(var(--gradient-phase) + 145deg)) calc(104% + 3% * sin(var(--gradient-phase) + 145deg)), #c88cf5 0%, #c88cf5c8 30%, #c88cf55a 60%, #c88cf500 100%),
radial-gradient(40% 40% at calc(76% + 3% * cos(8deg - var(--gradient-phase))) calc(80% + 3% * sin(8deg - var(--gradient-phase))), #3c1487 0%, #3c1487c8 30%, #3c14875a 60%, #3c148700 100%),
radial-gradient(74% 74% at calc(104% + 3% * cos(var(--gradient-phase) + 230deg)) calc(108% + 3% * sin(var(--gradient-phase) + 230deg)), #200a44 0%, #200a44c8 30%, #200a445a 60%, #200a4400 100%),
radial-gradient(40% 40% at calc(22% + 3% * cos(93deg - var(--gradient-phase))) calc(24% + 3% * sin(93deg - var(--gradient-phase))), #2b0a5e 0%, #2b0a5ec8 30%, #2b0a5e5a 60%, #2b0a5e00 100%),
radial-gradient(78% 78% at calc(-4% + 3% * cos(var(--gradient-phase) + 315deg)) calc(-6% + 3% * sin(var(--gradient-phase) + 315deg)), #1a0a2c 0%, #1a0a2cc8 30%, #1a0a2c5a 60%, #1a0a2c00 100%),
radial-gradient(34% 34% at calc(96% + 3% * cos(178deg - var(--gradient-phase))) calc(4% + 3% * sin(178deg - var(--gradient-phase))), #cf8cf8 0%, #cf8cf8c8 30%, #cf8cf85a 60%, #cf8cf800 100%),
radial-gradient(79.83% 31.32% at calc(62% + 3% * cos(var(--gradient-phase) + 40deg)) calc(44% + 3% * sin(var(--gradient-phase) + 40deg)), #b566f6 0%, #b566f6c8 30%, #b566f65a 60%, #b566f600 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.