transition-delay
Utilities for controlling the delay of CSS transitions.
| Class | Styles |
|---|---|
delay-<number> | |
transition-delay: <number>ms; |
|
| delay-(<custom-property>) |
transition-delay: var(<custom-property>);
|
| delay-[<value>] |
transition-delay: <value>;
|
Use utilities like delay-150 and delay-700 to set the transition delay of an element in milliseconds:
Hover each button to see the expected behavior
delay-150
delay-300
delay-700
<button class="transition delay-150 duration-300 ease-in-out ...">Button A</button><button class="transition delay-300 duration-300 ease-in-out ...">Button B</button><button class="transition delay-700 duration-300 ease-in-out ...">Button C</button>
For situations where the user has specified that they prefer reduced motion, you can conditionally apply animations and transitions using the motion-safe and motion-reduce variants:
<button type="button" class="delay-300 motion-reduce:delay-0 ..."> <!-- ... --></button>
Use the delay-[<value>] syntax to set the transition delay based on a completely custom value:
<button class="delay-[1s,250ms] ..."> <!-- ... --></button>
For CSS variables, you can also use the delay-(<custom-property>) syntax:
<button class="delay-(--my-delay) ..."> <!-- ... --></button>
This is just a shorthand for delay-[var(<custom-property>)] that adds the var() function for you automatically.
Prefix a transition-delay utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<button class="delay-150 md:delay-300 ..."> <!-- ... --></button>
Learn more about using variants in the variants documentation.
On this page
[

From the creators of Tailwind CSS
Make your ideas look awesome, without relying on a designer.
“This is the survival kit I wish I had when I started building apps.”
Derrick Reimer, SavvyCal
](https://www.refactoringui.com/?ref=sidebar)
Copyright © 2026 Tailwind Labs Inc.·Trademark Policy