Animated gradient background with CSS

Animated gradient playground

Try a palette, change the loop duration, or pause the background. The text stays on a solid dark card while the colors move behind it.

Color in motion

A pure CSS gradient. No video, image or JavaScript required.

Palette
Loop duration

Animation is running. Check Pause animation to freeze the current frame.Animation is paused. Uncheck Pause animation to resume.

Your browser is showing a static gradient preview. Interactive controls require CSS :has() support.

Reduced motion is enabled on your device. A static gradient is shown and motion controls are hidden.

This demo is entirely HTML and CSS. Choices apply only while this page is open.