The order of time values within each animation definition is important: the first value that can be parsed as a <time>
is assigned to the animation-duration
, and the second one is assigned to animation-delay
.
The order of other values within each animation definition is also important for distinguishing an animation-name
value from other values. If a value in the animation
shorthand can be parsed as a value for an animation property other than animation-name
, then the value will be applied to that property first and not to animation-name
. For this reason, the recommended practice is to specify a value for animation-name
as the last value in a list of values when using the animation
shorthand; this holds true even when you specify multiple, comma-separated animations using the animation
shorthand.
An animation-name
value is not required to be declared in the animation
shorthand property. If no name exists, there is no animation to apply on any of the properties.
When the animation-duration
value is omitted from the animation
shorthand property, the value for this property defaults to 0s
. In this case, the animation will still occur (the animationStart
and animationEnd
events will be fired) but no animation will be visible.