CSS animation-name Property
Example
Specify a name for the @keyframes animation:
div {
animation-name: mymove;
}
animation-name: mymove;
}
Definition and Usage
The animation-name property specifies a name for the @keyframes animation.
The @keyframes applies various CSS Styles to element at intervals of time.
| Default value: | none |
|---|---|
| Inherited: | no |
| Animatable: | no. |
| Version: | CSS3 |
| JavaScript syntax: | object.style.animationName="myNEWmove" |
- Inherited : "Inherited = no" means that it cannot takes (inherit) it's value from it's parent element.
- object - object in javascript means the element on which
animation-nameis applied. - Animatable - "Animatable = no" means that it cannot be animated with CSS
@keyframes.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix.
| 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- |
CSS Syntax
animation-name: keyframename|none|initial|inherit;
Property Values
| 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. | |
| inherit | Inherits this property from its parent element. |
Comments
Post a Comment