animation-duration

Specifies how long it takes for an animation to complete one full cycle (from 0% to 100%). Use seconds (s) or milliseconds (ms).

Quick example

.spinner {
  animation-name: spin;
  /* Completes one rotation every 0.8 seconds */
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
}

Quick facts

Initial value
0s
Inherited
No
Applies to
all elements and pseudo-elements
Animation type
notAnimatable

Values

autotime

animation-duration Browser Support

Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

43+
16+
9+
12+
ESC