Browse documentation
Reference / Transitions & animation
Animation delay
Offset the start time of a CSS animation. A negative delay enters the cycle as though some time has already elapsed.
Working example
Show the delayed annotation
A second ink pass adds the texture.
The fade-in preset uses a fill mode of both, so its first transparent frame also holds during a positive delay.
<details class="group rounded border p-4">
<summary class="cursor-pointer font-semibold">Show the delayed annotation</summary>
<p class="mt-3 origin-left motion-safe:group-open:animate-fade-in motion-safe:group-open:animate-delay-300">A second ink pass adds the texture.</p>
</details>Class reference
| Class | CSS declarations |
|---|---|
animate-delay-0 | animation-delay: 0ms; |
animate-delay-150 | animation-delay: 150ms; |
animate-delay-300 | animation-delay: 300ms; |
-animate-delay-150 | animation-delay: -150ms; |
animate-delay-[.4s] | animation-delay: .4s; |
View full generated CSS
.-animate-delay-150 {
animation-delay: -150ms;
}
.animate-delay-0 {
animation-delay: 0ms;
}
.animate-delay-150 {
animation-delay: 150ms;
}
.animate-delay-300 {
animation-delay: 300ms;
}
.animate-delay-\[\.4s\] {
animation-delay: .4s;
}