07.02 · Ambient & Background

Mesh Gradient Animation

Blurred blobs of color drift and melt together. Best for landing pages.

Watch it

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

Mesh gradient
Organic color without sharp edges
Heavy blur melts round blobs into soft washes of color, the look Stripe made popular.

Try it

Change a setting and see the difference as it moves.

Blur

Heavy blur hides the circles; light blur shows them.

Speed

Longer cycles feel calmer.

Colors

The colors of the blobs.

More optionsFewer options

Number of blobs

More blobs make a richer mix of color.

Blend

Lighter brightens where blobs overlap; deeper darkens it.

Copy the prompt

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

Add a mesh gradient background to [the section you want behind your content]. Place a few large circles of color behind the content and blur them, so their edges soften and the colors run into one another. Let each circle drift and grow or shrink slowly on its own path, so the colors keep blending in new ways, and clip them to the section so they never spill out. Blur is costly on phones, so blur less on small screens. If the visitor has reduced motion turned on, keep the circles 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
  • App splash screens
  • Dark dashboards

Avoid on

  • Small elements
  • Long reading pages