repeatCount

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

这个属性表示动画将发生的次数。

这个属性的值指定了重复的次数。它也可以包括用分数值表示。它的值必须大于 0。

示例

The following elements can use the repeatCount attribute

使用说明

<number> | indefinite
默认值
可变性
<number>

该值指定迭代次数。它可以使用分数值来表示部分迭代。分数值仅表示整个动画持续时间的一部分。值必须大于 0

indefinite

该值表示动画将无限期地重复(即直到文档结束)。

规范

Specification
SVG Animations Level 2
# RepeatCountAttribute

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
repeatCount

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support