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

Get it now →


Defines how long the transition lasts.

default transition-duration: 0s;

The transition will last zero seconds, and is thus instant.

transition-duration: 1.2s;

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

transition-duration: 2400ms;

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