
generators
CSS Gradient
The ultimate CSS gradient generator with visual preview and code export.
#gradient#color#background
Generate CSS mask-image effects to fade or reveal elements using gradient masks. Choose from linear directions, radial center fades, or dual-edge fades. Control the fade start and end positions with precision. The output includes both the standard mask-image and the -webkit-mask-image prefix for full Safari support.
Mask shape preview (green = visible, transparent = hidden)
Effect on image (rainbow gradient simulates your content)
Choose a direction for a linear fade, radial for a centre-out vignette, or dual-edge to fade both sides simultaneously.
Adjust fade start and end sliders to control where the fade begins and ends as a percentage of the element.
The coloured gradient preview shows the mask shape — black is fully visible, transparent is fully hidden.
Output includes both -webkit-mask-image and mask-image plus mask-size and mask-repeat for complete CSS.
From our directory of 30+ CSS tools.
Know a great CSS tool?
Submit it to the directory and help developers discover it.