Table of contents
- 1. Summary
- 2. Syntax
- 2.1. Values
- 3. Examples
- 4. Specifications
- 5. Browser compatibility
- 6. See also
« CSS « CSS Reference
Summary
The animation-name CSS property specifies a list of animations that should be applied to the selected element. Each name indicates a @keyframes
at-rule that defines the property values for the animation sequence.
It is often convenient to use the shorthand property animation
to set all animation properties at once.
- Initial value
:
none - Applies to: all elements, and
::beforeand::afterpseudo-elements - Inherited : no
- Media:
visual - Computed value : as specified
Syntax
animation-name: none | <name> [, none | <name>]*
Values
<name>- A string identifying the animation.
Examples
See CSS animations for examples.
Specifications
| Specification | Status | Comment |
|---|---|---|
| CSS Animations Level 3 | Working Draft |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | (Yes) -webkit | 5.0 (5.0) -moz | 10 -ms [1] | 12 -o | 4.0 -webkit |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
Mozilla Developer Network