background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 100%);
CSS gradients allow you to display smooth transitions between two or more specified colors without needing to upload heavy image files. Using CSS gradients instead of background images significantly improves your website’s loading speed (Core Web Vitals) and allows for infinite scalability without quality loss.
Linear gradients progress in a straight line. You can control the direction using an angle (e.g., 45deg) or keywords (e.g., to right). The syntax is linear-gradient(angle, color1, color2). They are the most commonly used gradients for website backgrounds and buttons.
Radial gradients radiate outward from a central point. By default, the center is placed at the exact middle of the element (50% 50%), but our generator allows you to adjust the X and Y coordinates. These are perfect for creating spotlight effects or glowing orbs behind elements.
Conic gradients transition colors rotating around a center point (like a pie chart or a color wheel). While less common for full-page backgrounds, they are incredibly powerful for creating complex UI elements, pie charts, and radar charts using pure CSS.
Color stops dictate where each color begins and ends in the gradient. By default, colors are distributed evenly. However, by assigning percentage values (e.g., #ff0000 20%), you can force a color to start earlier or later, creating sharp boundaries or concentrated bursts of color. You can add as many stops as you need in our generator above.
blue 50%, red 50%), you create a solid hard line instead of a fade. This is great for making striped backgrounds without images.linear-gradient syntax, if you need to support very old browsers, you may need to use vendor prefixes like -webkit-linear-gradient.