What is a CSS gradient?
A CSS gradient displays a smooth transition between two or more colors. Unlike an image created in Photoshop or Figma, a CSS gradient is generated dynamically by the browser. It is one of the most efficient web design techniques, because it requires no HTTP request (no image to download) and adapts perfectly to every screen resolution with no loss of quality.
Difference between linear-gradient and radial-gradient
- Linear-gradient: Colors blend along a straight line. You can control the direction of that line with an angle in degrees (e.g.:
90degto go from left to right) or keywords (e.g.:to right bottom). - Radial-gradient: Colors start from a central point and spread outward in a circle or ellipse, often simulating a light source (halo effect).
Why include a color "fallback"?
Our generator gives you a background-color line before declaring the gradient image. This practice (called a Fallback) ensures that if a user visits your site with a very old browser (or an email client that does not support CSS3), they will at least see the main color instead of a transparent background that could make your text unreadable.