files/en-us/web/svg/reference/attribute/stop-opacity/index.md
The stop-opacity attribute defines the opacity of a given color gradient stop.
The opacity value used for the gradient calculation is the product of the value of stop-opacity and the opacity of the value of the {{SVGAttr("stop-color")}} attribute. For stop-color values that don't include explicit opacity information, the opacity is treated as 1.
[!NOTE] As a presentation attribute,
stop-opacityalso has a CSS property counterpart: {{cssxref("stop-opacity")}}. When both are specified, the CSS property takes priority.
You can use this attribute with the following SVG elements:
<opacity-value>
0 and 1 or a {{cssxref("percentage")}} value specifying the opacity of the color gradient stop.{{Specifications}}
{{Compat}}