CSS Gradient Generator

Create stunning static and animated CSS gradients with a live visual editor.

Drag color stops · Choose gradient type · Add animations · Copy code instantly.

Start Designing Browse Presets
Mode
Type
Direction
°
Color Stops
Live Preview

Changes update in real time · Switch tabs to see gradient in context

Generated Code

        
      
CSS Variables
Browser Support
Chrome 26+
Firefox 36+
Safari 7+
Edge 12+

Gradient Presets

Click any preset to load it into the editor above.

Frequently Asked Questions

Everything you need to know about CSS Gradients.

What is a CSS gradient?

A CSS gradient is a smooth transition between two or more colors generated entirely in CSS — no image file needed. Use linear-gradient() for directional transitions, radial-gradient() for circular ones, and conic-gradient() for sweeping color arcs.

How do I animate a CSS gradient?

Browsers cannot animate gradient color stops directly. The most common technique is animating background-size or background-position with a large oversized gradient. For rotating conic gradients, use requestAnimationFrame in JavaScript to update the gradient string each frame.

What is the difference between linear-gradient and radial-gradient?

linear-gradient() transitions colors along a straight line at any angle. radial-gradient() radiates colors outward from a center point. Use linear for backgrounds and hero sections; use radial for spotlight or orb-style effects.

What is a conic gradient?

conic-gradient() sweeps colors around a center point like a clock face — perfect for pie charts, color wheels, and spinning animated backgrounds. It has excellent support in all modern browsers since 2022.