repeatDur
示例
html
<svg viewBox="0 0 220 150" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="100" height="100">
<animate
attributeType="XML"
attributeName="y"
from="0"
to="50"
dur="1s"
repeatDur="5s" />
</rect>
<rect x="120" y="0" width="100" height="100">
<animate
attributeType="XML"
attributeName="y"
from="0"
to="50"
dur="1s"
repeatDur="indefinite" />
</rect>
</svg>
用法说明
| 值 |
<clock-value> | indefinite |
|---|---|
| 默认值 | 无 |
| 可动画 | 否 |
<clock-value>-
此值指定重复动画的演示时间持续时间。
indefinite-
此值表示动画将无限期重复(即,直到文档结束)。
规范
| 规范 |
|---|
| SVG 动画 2 级 # RepeatDurAttribute |