Gaya animasiNama Properti
Contoh
Mengubah properti animationName dari elemen <div>:
document.getElementById("myDIV").style.animationName = "myNEWmove";
Definisi dan Penggunaan
Properti animationName menyetel atau mengembalikan nama untuk animasi @keyframes.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Angka yang diikuti oleh Webkit, Moz, atau O menentukan versi pertama yang berfungsi dengan awalan.
Property | |||||
---|---|---|---|---|---|
animationName | 43.0 4.0 Webkit |
10.0 | 16.0 5.0 Moz |
9.0 4.0 Webkit |
30.0 15.0 Webkit 12.1 12.0 O |
Sintaksis
Kembalikan properti animationName:
object.style.animationName
Setel properti animationName:
object.style.animationName = "none|keyframename|initial|inherit"
Nilai properti
Value | Description |
---|---|
none | Default value. Specifies that there will be no animation (can be used to override animations coming from the cascade) |
keyframename | Specifies the name of the keyframe you want to bind to the selector |
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: | tidak ada |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti nama-animasi dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti nama-animasi