Skip to content
Animated Gradient Background Generator Gradient Generator
More free tools

Animated Gradient Background Generator

Pick colors and watch the gradient move. Add blur or grain. Then copy the CSS, or download a PNG or a short video loop. Free, with no sign-up and no watermark.

/* Animated gradient from bingemind.com/animated-gradient-generator */
.bm-gradient {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bm-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(135deg, #ff7e5f, #feb47b, #ffd194, #ff7e5f);
  background-size: 400% 400%;
  background-position: 0% 50%;
  animation: bm-gradient-move 15s ease-in-out infinite;
}
@keyframes bm-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-gradient::before { animation: none; }
}

Everything runs on this device. Nothing is uploaded.

Presets
Type
Colors

What is an animated gradient background?

An animated gradient background is a color blend that moves slowly behind your content. It adds life to a hero section, a landing page or a slide without a video file. This animated gradient background generator shows the result as you change it and gives you plain CSS code that you can paste into any site.

How to use the animated gradient generator

  1. Pick a preset, or start with your own colors.
  2. Choose Linear, Radial or Blobs.
  3. Set the angle, the speed, the blur and the grain.
  4. Open CSS code and press Copy CSS. Paste it into your stylesheet and add the class to your element.
  5. Or open PNG and download a still, or open Video and record one loop.

How the CSS works

The code uses a pseudo-element (::before) that sits behind your content. The gradient is drawn larger than the element, and a CSS animation moves it slowly from one side to the other and back. Because the moving part is a separate layer, blur only touches the background, never your text. When grain is on, a second layer (::after) adds a fine noise texture.

The code also has a prefers-reduced-motion rule. People who ask their device for less motion see a still gradient. This matters for people who get dizzy from moving backgrounds.

Linear, radial or blobs

  • Linear blends colors along a line at the angle you choose. It suits wide hero sections.
  • Radial blends colors out from a center point. It suits cards and square areas.
  • Blobs places soft circles of color on a base color and moves each one on its own path. With some blur, it gives the soft "mesh gradient" look.

Grainy gradients

Grain is a light noise texture on top of the colors. It makes flat gradients look softer and more like print. It also hides banding, the visible steps that can show in smooth gradients on some screens. Start at 10 to 20 percent. More grain looks bold, but it makes video files much larger, because noise is hard to compress.

Tips for a good background

  • Keep text readable. Turn on "Show text on top" and check that your headline is easy to read over every part of the loop.
  • Slow is calm. A loop of 12 to 20 seconds feels relaxed. Very fast loops pull attention away from your content.
  • Use two to four colors that sit near each other on the color wheel for a soft look, or far apart for a bold look.
  • One moving background per page is enough.

PNG and video

The PNG option saves one still frame at common sizes, such as 1920 x 1080 for a hero image or 1080 x 1920 for a phone wallpaper. Use the Frame slider to pick the moment.

The video option records one full loop, so it repeats without a jump. Your browser makes the video on your device. Most desktop browsers can make WebM, and some can also make MP4. If your browser cannot record video, the page tells you, and the CSS and PNG still work.

Performance

A CSS gradient animation is light. It needs no image or video download. Blur on a large area costs more work for the device, so use it with care on pages that already do a lot. The reduced-motion rule turns the animation off for people who ask for it.

Frequently asked questions

Is this animated gradient generator free?

Yes. There is no sign-up, no watermark and no limit on copies or downloads.

Does the CSS need JavaScript?

No. The code is plain CSS: a class, a pseudo-element and keyframes. Paste it into your stylesheet and add the class to any element.

Does it respect reduced motion?

Yes. The code includes a prefers-reduced-motion rule. People who ask their device for less motion see a still gradient.

How do I make a grainy gradient?

Move the Grain slider up. The code adds a light noise layer on top of the colors. 10 to 20 percent looks subtle. The PNG and the video include the grain too.

Can I download a video of the gradient?

Yes, if your browser can record video. Most desktop browsers make WebM, and some also make MP4. The video is one full loop, so it repeats smoothly. If your browser cannot record, the page says so.

Why is there no GIF?

Gradients look poor in GIF, because GIF has only 256 colors, and the files are large. Use the CSS, the PNG or the video instead.

Is anything uploaded?

No. The preview, the PNG and the video are all made in your browser on your device. Nothing is sent to a server.

Will the animation slow down my site?

A plain gradient animation is light. Large blur costs more work for the device, so keep blur low on busy pages.

What next