CSS stroke-opacity property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS stroke-opacity property determines the transparency of stroke object. The value of stroke-opacity varies from 0 to 1 i.e. [0-1]
Syntax
stroke-opacity : value between 0 and 1
Property values
partially transparency
-
It represents 50% transparency of the stoke object.
- Try it
stroke-opacity: 0.5;
Applicable to
It applies to inline boxes and SVG shapes.