← All elements
<div class="pc-aurora">
<h3>Autumn Drop</h3>
<p>New arrivals land Friday</p>
</div>About this animation
A dark promo banner whose slow, blurred colour fields drift behind the text using two animated pseudo-elements.
How it works
The banner is a dark box with two pseudo-elements behind the text, each filled with two soft radial gradients in different colours and blurred by 34px. A slow keyframe moves and rotates each one over 12 and 16 seconds, in opposite directions, so the colour fields drift and blend like an aurora.
Ways to customise it
- Change the rgba colours in the four radial gradients.
- Change the 12s and 16s durations to calm or speed up the drift.
- Change the 34px blur for a softer or sharper look.
Good to know
Large blurred layers can be heavy on low-end phones, so keep the banner small. Check the text contrast against the brightest colour field, and add a prefers-reduced-motion rule to stop the drift.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.