Animated gradient

Also called moving gradient background, gradient animation, or shifting gradient

A color gradient that slowly shifts across a surface on a loop, often used behind a hero or call to action to add warmth and motion.

What is Animated gradient?

An animated gradient blends two or more colors and slowly moves them, so the surface seems to flow from one hue to the next. It gives a hero, a banner, or a sign-up card a sense of energy without adding shapes or images.

The classic CSS approach makes the gradient larger than its box with background-size: 400% 400% and animates background-position over 10 to 20 seconds. That repaints the area every frame, which is fine for one banner. For large areas or many copies, put the gradient on an oversized layer and move it with transform, which the GPU handles more cheaply.

Keep the motion slow enough that people notice it only after a moment; fast color changes distract and can be uncomfortable. Check that text on top stays readable at every point in the loop, and freeze the gradient under prefers-reduced-motion.

Often confused with

Mesh gradient
A mesh gradient blends colors from several points into soft, organic shapes and is often still. An animated gradient is any gradient set in motion.
Aurora background
An aurora background layers blurred, wavy bands of color that drift like the northern lights, one specific look an animated gradient can create.
All terms

Mesh gradient

A smooth, multicolor gradient where several colors blend outward from different points, like paint mixing, often used for hero backgrounds.

Aurora background

A background of soft, blurred color ribbons that drift slowly, like the northern lights, used behind hero sections and landing pages.

Border beam

A short streak of light that travels around the edge of a card or button on a loop, drawing attention to it.

Gradient text

Text filled with a color gradient instead of a solid color, made by painting a gradient background and clipping it to the shape of the letters.