CSS Aurora Background Animation
A slow aurora behind a still card: four blurred radial gradients drifting on a dark field.

An aurora background is a dark field with a few large, soft colors drifting behind the content. It is the 2026 version of a mesh gradient: less geometric than a blob cluster, more like light leaking in from outside the frame. Landing pages, waitlists, and product heroes search for it when a flat dark background feels unfinished and a video background is the wrong weight.
This one is a single element. Four radial-gradients share the background. A blur turns the edges into light. A 16 second alternate animation translates and scales the whole layer by a few percent. The card on top does not move. That split is the whole trick. If the headline drifts with the color, the page feels seasick. If only the wash drifts, the page feels lit.
The animated blob backgrounds are the more literal, shape-based version. Use blobs when you want objects. Use an aurora when you want weather.
The wash
.wash {
position: fixed;
inset: -20%;
background:
radial-gradient(40% 40% at 20% 30%, rgba(124, 58, 237, .9), transparent 60%),
radial-gradient(36% 42% at 80% 20%, rgba(34, 211, 238, .75), transparent 60%),
radial-gradient(40% 40% at 60% 80%, rgba(244, 114, 182, .8), transparent 62%),
radial-gradient(30% 30% at 40% 60%, rgba(250, 204, 21, .35), transparent 60%);
filter: blur(28px);
animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
from { transform: translate3d(-4%, -2%, 0) scale(1); }
to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
inset: -20% plus the scale keeps the blur from revealing a hard edge at the viewport. The base of the page is #07060d, which shows through the transparent parts of the gradients. Without that dark base the aurora is a pastel fog and the type has nowhere to sit.
Four colors is the maximum that still reads as a palette. A fifth starts to look like a random generator. Violet, cyan, and pink do the work. The yellow is a small warm leak so the scene is not only cool.
filter: blur is the expensive line. One full-viewport blur that moves slowly is acceptable. Do not also blur a stack of cards on the same page. The animation uses transform only, so the browser can keep the blurred layer on the compositor after the first paint. Animating background-position instead would repaint the gradients every frame.
The card
.card {
background: rgba(7, 6, 13, 0.45);
border: 1px solid rgba(255,255,255,.18);
backdrop-filter: blur(10px);
}
The card is a darker veil, not another colorful object. White type on that veil stays readable while the aurora moves behind it, because the veil’s color does not change. Test the heading against the veil, not against the brightest moment of the cyan blob. If you remove the veil to “let the aurora show through the letters”, you will fail contrast twice a cycle.
aria-hidden on the wash is correct. It is not content. The heading is.
Reduced motion
Stop the drift. Leave the gradients where they are. A still mesh is a legitimate background. The information was never in the movement.
Where it does not belong
Long articles. A fixed aurora behind thousands of words is a light show beside a document. Use it on the first screen, then let the rest of the page be a solid color. The demo is only the first screen, which is why the wash can be position: fixed.
Questions about aurora backgrounds
How do I make an aurora background in CSS?
Stack three or four radial gradients on one fixed layer, blur them, and animate a small translate and scale on an alternate loop. Keep the text on a separate, still surface.
Why does my gradient animation look choppy?
The animation is probably changing background-position or the gradient stops. Animate transform on a layer that is already blurred. The blur happens once. The move stays on the compositor.
Is an animated aurora bad for performance?
One slowly transformed layer is fine. Many blurred layers, or a blur on scrolling content, is where it gets expensive. Use the aurora on the hero and a flat background after it.