Table of contents
- 1. Summary
- 2. Syntax
- 3. Examples
- 4. Specifications
- 5. Browser compatibility
- 6. See also
Summary
The transition-delay
CSS property specifies the amount of time to wait between a change being requested to a property that is to be transitioned and the start of the transition effect.
A value of 0s
, or 0ms
, indicates that the property will begin to animate its transition immediately when the value changes; positive values will delay the start of the transition effect for the corresponding number of seconds. Negative values cause the transition to begin immediately, but to cause the transition to seem to begin partway through the animation effect.
You may specify multiple delays; each delay will be applied to the corresponding property as specified by the transition-property
property, which acts as a master list. If there are fewer delays specified than in the master list, missing values are set to the initial value (0s
). If there are more delays, the list is simply truncated to the right size. In both case the CSS declaration stays valid.
- Initial value
:
0s
- Applies to: all elements,
:before
and:after
pseudo elements - Inherited : no
- Media:
interactive
- Computed value : as specified
Syntax
transition-delay: time[, time]*
where:
- time
- Is a
<time>
denoting the amount of time to wait between a property's value changing and the start of the animation effect.
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 |