Figma plugin liveInstall

GradientLab field guide

How to Make an Animated Gradient Background for a Website

A good background supports the page rather than competing with it. This workflow takes you from a visual shader composition to a practical website asset, with checkpoints for readability, looping, export size, and reduced motion.

1. Design behind real content

Start with the aspect ratio of the intended section. Add your brand colors in GradientLab and choose a gradient type: Aurora for a flowing field, Spiral for a directional composition, or a simpler field when text needs more space. Limit the palette before adding effects.

Place a screenshot or mockup of your heading and button over the composition in your design tool. Keep the focal area away from important text. If the background has both bright and dark regions, a consistent overlay behind the content can be more reliable than adjusting text color for a single frame.

2. Add one motion idea and check the seam

Use the animation controls to select a motion preset and tune its intensity. A slow field change is often enough for a hero; several competing effects can make the whole page feel unstable. Preview at the size your visitor will actually see.

Watch several complete cycles. Look for a visible jump at the loop boundary, a sudden bright flash, or an effect that travels directly behind the main heading. Do not assume that every combination of parameters produces a seamless result. Export a short draft and inspect the repeat before committing to a final render.

3. Export for the destination, not the maximum setting

Choose a video format supported by your destination. MP4 is a practical starting point for websites; WebM can be an additional source. Still images can be exported as PNG, JPG, or WebP. Export options and resolution limits depend on your plan—check the current pricing page before planning a 4K delivery.

Match the output dimensions to the display area and test a lower resolution first. A softly textured background may not need the same resolution as detailed foreground artwork. Shorten the loop and reduce unnecessary frame rate or dimensions when the download is too large. Review both visual quality and actual file size.

Export a still frame with the same crop to use as a poster and reduced-motion fallback. Test the poster and the video together: a different crop or palette can create a distracting flash when playback begins.

4. Integrate motion as an optional enhancement

Use a muted, inline-playing video when autoplay is appropriate, and keep an attractive still background available if playback is blocked. Provide a visible pause control for persistent motion. Honor prefers-reduced-motion by showing the still image and avoiding the video request where practical.

Keep decorative video out of the accessibility tree; keep meaningful headings, descriptions, and links in HTML. If the video conveys information instead of decoration, provide the corresponding accessible alternatives. Reserve the hero’s dimensions and use object-fit: cover only after checking how the composition crops on narrow screens.

5. Test the page, not just the exported file

Check the final page on mobile and desktop, with reduced motion enabled, with autoplay blocked, and on a slower connection. Make sure the poster appears promptly and the call to action remains readable throughout the loop.

Measure page loading before and after adding the background. If the effect delays the main content, use the still image initially and load motion later, or keep the still version. A visually successful background can be static when that is the better experience.