stop-opacity
Widely availableSince 202097% of users
Defines the transparency (alpha) of a color stop in an SVG gradient. This allows you to create gradients that fade into transparency.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2017. Widely available since October 2019.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
black- Inherited
- No
- Applies to
- SVG <stop> elements
- Animation type
- discrete
Quick example
stop.fade-out {
/* Makes this specific point in the SVG gradient 50% transparent */
stop-opacity: 0.5;
}Values
opacitystop-opacity browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
3+
4+
≤15+Mobile
18+Android
4+Android
3.2+iOS