Thuộc tính CSS animation-name
Thí dụ
Chỉ định tên cho hoạt ảnh @keyframes:
div {
animation-name: mymove;
}
Định nghĩa và Cách sử dụng
Thuộc animation-name
tính chỉ định tên cho
hoạt ảnh @keyframes .
Giá trị mặc định: | không ai |
---|---|
Thừa hưởng: | không |
Hoạt hình: | không. Đọc về hoạt hình |
Phiên bản: | CSS3 |
Cú pháp JavaScript: | object .style.animationName = "myNEWmove" |
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Các số theo sau -webkit-, -moz- hoặc -o- chỉ định phiên bản đầu tiên hoạt động với tiền tố.
Property | |||||
---|---|---|---|---|---|
animation-name | 43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
Cú pháp CSS
animation-name: keyframename|none|initial|inherit;
Giá trị tài sản
Value | Description | |
---|---|---|
keyframename | Specifies the name of the keyframe you want to bind to the selector | |
none | Default value. Specifies that there will be no animation (can be used to override animations coming from the cascade) | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Các trang liên quan
Hướng dẫn CSS: CSS Animations
Tham chiếu DOM HTML: thuộc tính animationName