How to use the animated background generator
- Start from a preset. Filter the gallery by gradients, organic, particles, geometric, texture, interactive or layered scenes, then select Customize.
- Set the scene: the base color, a palette of two to five colors, an optional heading and the height.
- Edit the layers. Layer 1 sits at the back. Choose an effect and style for each layer, then adjust speed, density, size, blur, opacity, direction and blend mode. Use Shuffle layout to rearrange particles and blobs.
- Stack effects. Add up to four layers: grain over an aurora, snow over a gradient, or a spotlight over a dot pattern.
- Watch the meter. The note under the preview shows the estimated rendering cost and what drives it.
- Export CSS, the HTML markup, JavaScript (only for the spotlight), a React component, a full HTML page or SCSS.
How it works
Each layer is an absolutely positioned element inside a container with isolation: isolate, so blend modes mix only within the background. Most effects animate a pseudo-element or a few child spans:
- Moving gradients, grids and patterns use an oversized element that shifts by exactly one tile or rotates, so the loop never jumps.
- Aurora, blobs and bokeh are soft radial gradients that drift with
transform. The layer’s blur merges them. - Waves are inline SVG paths repeated twice across a 200%-wide strip that slides by half its width.
- Starfields, snow and rain are box-shadow fields: one element, hundreds of shadows, one transform.
- Liquid blobs animate
border-radius. It looks organic, but the browser repaints it every frame, so the meter rates it higher.
Performance tips
Prefer effects that only move or fade. Keep blur under 60px on full-screen layers, and use blend modes sparingly, because each one makes the browser composite more. For very long pages, you can pause the animation when the background scrolls out of view (the studio preview does this).
Worked examples
Example 1: a SaaS hero
Load Aurora with grain, keep the white heading and set the height to 560px. The cost reads Medium because of the 60px blur. Lower the blur to 40px or set the aurora’s speed to 0.5× for an even calmer effect.
Example 2: a festive banner
Load Winter snowfall. Raise the density for a blizzard, or set the direction to 200° to blow the snow sideways. It’s pure CSS, so it works anywhere you can paste a style block.
Example 3: an interactive portfolio header
Load Spotlight on dots. The JavaScript tab now contains the pointer script. Paste the HTML, CSS and script, and the light follows the visitor’s cursor. It stays centered for people who prefer reduced motion.
Common mistakes
- Text without contrast. Moving colors can pass behind your heading. Check the contrast estimate and test the final page.
- Too many layers. Two or three well-chosen layers usually look better and cost less than four.
- Forgetting mobile. Phones have weaker GPUs. Test on a real device, and consider a static gradient below 600px.