New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →


Defines how long the animation lasts.

default animation-duration: 0s;

The default value is zero seconds: the animation will simply not play.

animation-duration: 1.2s;

You can use decimal values in seconds with the keyword s.

animation-duration: 2400ms;

You can use milliseconds instead of seconds, with the keyword ms.