07.01 · Ambient & Background

Animated Gradient Background

Colors slowly drift across a soft gradient background. Best for hero sections.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Animated gradient
Color that moves without demanding it
A slow cycle keeps it calm: the color shifts, and the eye barely notices.

Try it

Change a setting and see the difference as it moves.

Gradient

Sliding is the calmest; the color wheel turns every color.

Speed

Longer cycles feel calmer.

Colors

The set of colors the gradient moves through.

More optionsFewer options

Takes most of the color out for a quieter look.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add an animated gradient background to [the section you want behind your content]. Paint a soft gradient much larger than the section and slowly slide it back and forth, or turn all its colors around the color wheel, so the colors keep shifting behind the content. End the gradient on the color it starts with, so the loop never shows a seam. A long, slow cycle feels calm; a fast one pulls attention away from the content. If the visitor has reduced motion turned on, show the gradient still. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Hero sections
  • Landing pages
  • Dashboards
  • Splash screens

Avoid on

  • Long reading pages
  • Small elements