CSS animation-delay Property

❮ Previous Reference Next ❯


div {
  animation-delay: 2s;


The animation-delay property is used to define a delay before an animation starts.

The animation-delay CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation.

The animation can start later, immediately from its beginning, or immediately and partway through the animation.

Default value:0s
JavaScript syntax:

Standard Syntax

animation-delay: time|initial|inherit|revert|revert-layer|unset;

Browser Support

The numbers in the table specify the first browser version that fully supports the property.


Property Values

The following table describes the values of this property:

Value Description
time The default value is 0s. Defines the number of seconds (s) or milliseconds (ms) to wait before the animation will start.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  animation-delay: 0s;
❮ Previous Reference Next ❯