transition-delay CSS property specifies the duration to wait before starting a property's transition effect when its value changes.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
The delay may be zero, positive, or negative:
- A value of
0ms) will begin the transition effect immediately.
- A positive value will delay the start of the transition effect for the given length of time.
- A negative value will begin the transition effect immediately, and partway through the effect. In other words, the effect will be animated as if it had already been running for the given length of time.
You may specify multiple delays, which is useful when transitioning multiple properties. 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, the list of delay values will be repeated until there are enough. If there are more delays, the list of delay values will be truncated to match the number of properties. In both cases, the CSS declaration remains valid.
/* <time> values */ transition-delay: 3s; transition-delay: 2s, 4ms; /* Global values */ transition-delay: inherit; transition-delay: initial; transition-delay: unset;
- Denotes the amount of time to wait between a property's value changing and the start of the transition effect.
|Applies to||all elements, |
|Computed value||as specified|
The definition of 'transition-delay' in that specification.
|Working Draft||Initial definition|
BCD tables only load in the browser