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.
Inside, each soft patch is a plain round shape of color, outlined here, blurred until its edges melt. Each drifts to its dashed outline and back, at its own pace.
No blur shows the same circles with hard edges, a spotty pattern. Blurred, as you set it, softens them into a wash of color; a light blur leaves the circles easy to see.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.