Loading…
Loading…
Apply CSS gradients to text using the background-clip technique.
background: linear-gradient(90deg, #ff00ff 0%, #00ffff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 72px; font-weight: 700;
Common questions about the CSS Gradient Text Generator.
Apply a gradient as background-image, set background-clip: text, and make the text transparent: background: linear-gradient(90deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; color: transparent. The gradient shows through the text shape.
Yes — background-clip: text works in all modern browsers. Use the -webkit- prefix for broadest support: -webkit-background-clip: text; -webkit-text-fill-color: transparent. This works in Chrome, Firefox, Safari, and Edge. The tool generates both prefixed and standard properties.
You can animate the gradient position using background-position and background-size for a shimmer or flowing effect. Set a background-size larger than the element (e.g., 200%) and animate background-position from left to right. Direct gradient color animation requires @property.
Gradient text can fail contrast checks where colors transition through lighter shades. Ensure both gradient endpoints and all midpoints pass WCAG 4.5:1 contrast against the background. Avoid light-to-light gradients on white backgrounds. Test with our contrast checker tool.