May 05, 2021 CSS Reference Manual
The animation-delay property defines when the animation starts.
The animation-delay value can be in seconds (s) or milliseconds (ms).
Tip: Allow negative values, -2s to make the animation start immediately, but skip 2 seconds to enter the animation.
Default: | 0 |
---|---|
Inherited: | no |
Version: | CSS3 |
JavaScript syntax: | object object.style.animationDelay="2s" |
animation-delay: time;
Value | Describe | Test |
---|---|---|
time | Optional. D efines the time, in seconds or milliseconds, to wait before the animation begins. The default is 0 | Testing . . . |
Wait two seconds, and then start the animation:
Negative value, note that the animation skips 2 seconds into the animation cycle:
animation-delay
|
4.0 -webkit- | 10.0 | 16.0 (5.0 -moz-) | 4.0 -webkit- | 15.0 -webkit- (12.0 -o-) |
CSS3 tutorial: CSS3 animation