stroke-dashoffset

stroke-dashoffset 属性指定了 dash 模式到路径开始的距离

如果使用了一个 <百分比> 值,那么这个值就代表了当前 viewport 的一个百分比。

值可以取为负值。

使用环境

类别 显示属性
<percentage> | <length> | inherit
初始值 1
可动画 Yes

示例

元素

以下元素可使用 stroke-dashoffset 属性

规范

Specification
Scalable Vector Graphics (SVG) 2
# StrokeDashoffsetProperty