This attribute specifies the total duration for repeat.
Categories | Animation timing attribute |
---|---|
Value | <clock-value> | "indefinite" |
Animatable | No |
Normative document | SVG 1.1 (2nd Edition) |
Clock values have the same syntax as in SMIL Animation specification. The grammar for clock values is repeated here:
Clock-val ::= Full-clock-val | Partial-clock-val | Timecount-val Full-clock-val ::= Hours ":" Minutes ":" Seconds ("." Fraction)? Partial-clock-val ::= Minutes ":" Seconds ("." Fraction)? Timecount-val ::= Timecount ("." Fraction)? (Metric)? Metric ::= "h" | "min" | "s" | "ms" Hours ::= DIGIT+; any positive number Minutes ::= 2DIGIT; range from 00 to 59 Seconds ::= 2DIGIT; range from 00 to 59 Fraction ::= DIGIT+ Timecount ::= DIGIT+ 2DIGIT ::= DIGIT DIGIT DIGIT ::= [0-9]
For Timecount
values, the default metric suffix is "s" (for seconds). No embedded white space is allowed in clock values, although leading and trailing white space characters will be ignored.
The following are examples of legal clock values:
02:30:03
= 2 hours, 30 minutes and 3 seconds50:00:10.25
= 50 hours, 10 seconds and 250 milliseconds02:33
= 2 minutes and 33 seconds00:10.5
= 10.5 seconds = 10 seconds and 500 milliseconds3.2h
= 3.2 hours = 3 hours and 12 minutes45min
= 45 minutes30s
= 30 seconds5ms
= 5 milliseconds12.467
= 12 seconds and 467 millisecondsFractional values are just (base 10) floating point definitions of seconds. Thus:
00.5s = 500 milliseconds
00:00.005 = 5 milliseconds
The following elements can use the repeatDur
attribute
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/repeatDur