animation
Introduction
The animation property is a shorthand property for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, and animation-play-state.
Examples

Syntax
Caution
Caution
- When writing CSS
@keyframes, it is recommended not to omit the values for the0%(orfrom) stage and100%(orto) stage. If the start and end stage values are not specified, we will use the node's current property value. Due to system limitations, the transform property on Android systems may have issues.
Formal definition
| Initial value | animation-name: none animation-duration: 0s animation-timing-function: ease animation-delay: 0s animation-iteration-count: 1 animation-direction: normal animation-fill-mode: none animation-play-state: running |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |
Formal syntax
Animation can specify multiple sets of animations. Properties within each set of animations are separated by spaces, and sets of animations are separated by commas.
Animation events
See also
- animation
- animation-name
- animation-duration
- animation-timing-function
- animation-delay
- animation-iteration-count
- animation-direction
- animation-fill-mode
- animation-play-state
- CSS animation event
- Animated API
Compatibility
LCD tables only load in the browser