The opacity attribute specifies the transparency of an object or of a group of objects, that is, the degree to which the background behind the element is overlaid.
Note: As a presentation attribute, opacity can be used as a CSS property. See the CSS opacity property for more information.
You can use this attribute with the following SVG elements:
<a><circle><ellipse><foreignObject><g><image><line><marker><path><polygon><polyline><rect><svg><switch><symbol><text><textPath><tspan><use>
Unlike fill-opacity, stroke-opacity, and stop-opacity, which are applied to individual operations and are rendered when the element is rendered, opacity is applied to whole objects or groups, and is more like a post-processing operation on the rendered image of the object or group. Therefore, when you have both opacity and the other opacity attributes in the same area, they will be overlaid on top of each other and cause the opacity to be multiplied.