Quick answer

  1. Create a solid: Layer › New › Solid.
  2. Apply Effect › Generate › Gradient Ramp.
  3. Set the Start and End of Ramp points and colors, and choose Linear or Radial Ramp Shape.
  4. Raise Ramp Scatter slightly to prevent banding.
  5. Keyframe the points or colors to animate the gradient.

Gradient Ramp: the quick two-color gradient

  1. Create a solid layer

    Choose Layer › New › Solid and make it the size of your composition. Any color works; the effect replaces it.

  2. Apply Gradient Ramp

    With the solid selected, choose Effect › Generate › Gradient Ramp.

  3. Set points and colors

    In the Effect Controls panel, set the Start of Ramp and End of Ramp positions (or drag the points in the Composition panel) and pick the Start Color and End Color.

  4. Choose the shape

    Set Ramp Shape to Linear Ramp or Radial Ramp.

  5. Prevent banding

    Increase Ramp Scatter a little. It adds noise to the transition, which hides banding in the final render.

4-Color Gradient: soft, mesh-like blends

Effect › Generate › 4-Color Gradient places four colored points that blend softly into each other, which gives a mesh-style look. Move the points in the Composition panel, change each color, and use Blend to make the transitions softer or harder. Jitter adds noise against banding.

Dusk, a soft mesh gradient at dusk
A soft multi-point blend. The 4-Color Gradient effect produces a similar mesh-style look in After Effects.

Gradient fills on shape layers

Shape layers can have gradient fills and strokes. Draw a shape, open the shape's contents in the timeline, and in the toolbar click the Fill label to switch the fill type to Linear Gradient or Radial Gradient. Click Edit Gradient to set the colors and stops. Unlike Gradient Ramp, these gradients can have many color stops and opacity stops.

Animate a gradient

Animation brings gradients to life. Three easy techniques:

  • Keyframe the points: set keyframes on Start and End of Ramp (or the 4-Color points) and let them drift slowly across the frame.
  • Keyframe the colors: animate the colors for a slow color shift. Keep changes subtle.
  • Use an expression: add a gentle, organic drift to a point property:
// on the Start of Ramp or a 4-Color point property
wiggle(0.3, 120)

For seamless loops, make sure the first and last keyframes match, or use a looping expression such as loopOut("cycle") after your keyframes.

Get rid of banding

FixWhereEffect
Ramp Scatter or JitterGradient Ramp or 4-Color GradientAdds subtle noise to break up steps
Higher bit depthProject Settings, Color: 16 or 32 bits per channelMore shades during rendering
Add grainEffect › Noise & Grain › Add GrainFilm-like texture that survives compression
Higher bitrate exportRender settingsLess compression on smooth areas

Video compression is hard on smooth gradients, so a little grain often matters more than any other setting. Read the full explanation in our banding guide.

A faster route to premium motion backgrounds

Building rich, organic gradient motion in After Effects means stacking effects, noise and expressions. World of Gradients renders flowing mesh, aurora and noise gradients with grain and exports them as seamless video loops in up to 4K, ready to use as a background layer.

Frequently asked questions

Where is Gradient Ramp in After Effects?

Choose Effect, Generate, Gradient Ramp. In older versions it was simply called Ramp.

How do I stop gradient banding in After Effects?

Raise Ramp Scatter, work in 16 or 32 bits per channel, add a little grain and export at a sufficient bitrate.

Can I make a gradient with more than two colors in After Effects?

Yes. Use 4-Color Gradient for four points, or a shape layer gradient fill, which supports many color stops.

How do I loop a gradient animation?

Make the first and last keyframes identical, or add the loopOut("cycle") expression after your keyframes.