O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

animation-delay

Values:

<time> [, <time>]*

Initial value:

0ms

Applies to:

Block-level and inline-level elements

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the amount of time that the user agent waits before starting the CSS animation(s). The timer starts when the UA applies the animation CSS. For a noninteractive element, this is likely (but not guaranteed) to be at the end of page load.

Examples:

body {animation-delay: 1s, 2000ms, 4s;}
a:hover {animation-delay: 400ms;}

Note:

As of mid-2011, the actual default value in the specification is 0. It is given as 0ms here for clarity’s sake, as only length values and numbers are permitted unitless zeroes.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required