stop-opacity
Defines the transparency (alpha) of a color stop in an SVG gradient. This allows you to create gradients that fade into transparency.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
stop.fade-out {
/* Makes this specific point in the SVG gradient 50% transparent */
stop-opacity: 0.5;
}
/* Syntax */
stop-opacity: opacity;
/* Global values */
stop-opacity: inherit;
stop-opacity: initial;
stop-opacity: revert;
stop-opacity: revert-layer;
stop-opacity: unset;
stop-opacity Browser support
Widely available
Since
2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
1+
3+
4+
15+