สไตล์แอนิเมชั่นName Property
ตัวอย่าง
การเปลี่ยนคุณสมบัติ animationName ของ <div> องค์ประกอบ:
document.getElementById("myDIV").style.animationName = "myNEWmove";
ความหมายและการใช้งาน
คุณสมบัติ animationName ตั้งค่าหรือส่งคืนชื่อสำหรับแอนิเมชั่น @keyframes
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Numbers ตามด้วย Webkit, Moz หรือ O ระบุเวอร์ชันแรกที่ใช้งานได้กับคำนำหน้า
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 |
ไวยากรณ์
ส่งคืนคุณสมบัติ animationName:
object.style.animationName
ตั้งค่าคุณสมบัติ animationName:
object.style.animationName = "none|keyframename|initial|inherit"
มูลค่าทรัพย์สิน
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 |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ไม่มี |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติชื่อแอนิเมชั่นขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: คุณสมบัติชื่อแอนิเมชั่น