Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

repeatCount

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

« SVG Attribute reference home

This attribute indicates the number of time the animation will take place. 

This attribute's value specifies the number of iterations. It can include partial iterations expressed as fraction values. Its value must be greater than 0.

Usage context

Categories Animation timing attribute
Value <number> | "indefinite"
Animatable No
Normative document SVG 1.1 (2nd Edition)

<number>

Real numbers are specified in one of two ways. When used in a stylesheet, a <number> is defined as follows:

number ::= integer
           | [+-]? [0-9]* "." [0-9]+

This syntax is the same as the definition in CSS (CSS2, section 4.3.1).

When used in an SVG attribute, a <number> is defined differently, to allow numbers with large magnitudes to be specified more concisely:

number ::= integer ([Ee] integer)?
           | [+-]? [0-9]* "." [0-9]+ ([Ee] integer)?

Within the SVG DOM, a <number> is represented as a float, SVGNumber or a SVGAnimatedNumber.

Example

Elements

The following elements can use the repeatCount attribute

文件標籤與貢獻者

 此頁面的貢獻者: Jeremie, sebmozilla
 最近更新: Jeremie,