Styl animacjiIterationCount Właściwość
Przykład
Zmiana właściwości animationIterationCount elementu <div>:
document.getElementById("myDIV").style.animationIterationCount = "infinite";
Definicja i użycie
Właściwość animationIterationCount ustawia lub zwraca, ile razy animacja powinna być odtwarzana.
Obsługa przeglądarki
Liczby w tabeli określają pierwszą wersję przeglądarki, która w pełni obsługuje tę właściwość.
Liczby, po których następuje Moz, określają pierwszą wersję, która działała z przedrostkiem.
Property | |||||
---|---|---|---|---|---|
animationIterationCount | 43.0 | 79.0 | 16.0 5.0 Moz |
Not supported | 30.0 |
Składnia
Zwróć właściwość animationIterationCount:
object.style.animationIterationCount
Ustaw właściwość animationIterationCount:
object.style.animationIterationCount = "number|infinite|initial|inherit"
Wartości nieruchomości
Value | Description |
---|---|
number | A number that defines how many times an animation should be played. Default value is 1 |
infinite | Specifies that the animation should be played infinite times (for ever) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Szczegóły techniczne
Domyślna wartość: | 1 |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość animation-iteration-count elementu |
Wersja CSS | CSS3 |
Powiązane strony
Dokumentacja CSS: własność animation-iteration-count