Gaya animasiIterationCount Property
Contoh
Mengubah properti animationIterationCount dari elemen <div>:
document.getElementById("myDIV").style.animationIterationCount = "infinite";
Definisi dan Penggunaan
Properti animationIterationCount menyetel atau mengembalikan berapa kali animasi harus diputar.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Angka yang diikuti oleh Moz menentukan versi pertama yang berfungsi dengan awalan.
Property | |||||
---|---|---|---|---|---|
animationIterationCount | 43.0 | 79.0 | 16.0 5.0 Moz |
Not supported | 30.0 |
Sintaksis
Kembalikan properti animationIterationCount:
object.style.animationIterationCount
Setel properti animationIterationCount:
object.style.animationIterationCount = "number|infinite|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | 1 |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti animasi-iterasi-count dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti animasi-iterasi-hitung