Table of contents
- 1. Summary
- 2. Syntax
- 3. Examples
- 4. Specifications
- 5. Browser compatibility
- 6. See also
Summary
The transition-duration CSS property specifies the number of seconds or milliseconds a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
You may specify multiple durations; each duration will be applied to the corresponding property as specified by the transition-property
property.
- Initial value
:
0s - Applies to: all elements,
:beforeand:afterpseudo elements - Inherited : no
- Media:
interactive - Computed value : as specified
Syntax
transition-duration: time[, time]*
where :
- time
- Is a
<time>denoting the amount of time the transition from the old value of a property to the new value should take.
Examples
There are several examples of CSS transitions included in the main CSS transitions article.
Specifications
- CSS Transitions Module Level 3 (Working Draft)
Browser compatibility
| Browser | Lowest Version |
|---|---|
| Internet Explorer | ? |
| Firefox (Gecko) | 4.0? (2.0) |
| Opera | ? |
| Safari (WebKit) | nightly, don't know version |


Mozilla Developer Network