TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jamiebuilds/tailwindcss-animate/llms.txt
Use this file to discover all available pages before exploring further.
duration-{amount} utilities set the animation-duration property on an element, controlling how long a single animation cycle takes to complete. You can combine these with animate-in, animate-out, or any of Tailwind’s built-in animate-* classes to fine-tune animation speed.
Reference
| Class | Properties |
|---|---|
duration-0 | animation-duration: 0ms; |
duration-75 | animation-duration: 75ms; |
duration-100 | animation-duration: 100ms; |
duration-150 | animation-duration: 150ms; |
duration-200 | animation-duration: 200ms; |
duration-300 | animation-duration: 300ms; |
duration-500 | animation-duration: 500ms; |
duration-700 | animation-duration: 700ms; |
duration-1000 | animation-duration: 1000ms; |
These classes reuse the same names as Tailwind’s
transition-duration utilities, since both are sourced from the transitionDuration theme key. This may change in a future release if it causes friction.Basic usage
Changing animation duration
Apply aduration-{amount} class alongside any animation class to control how fast or slow the animation plays.
Applying conditionally
Hover, focus, and other states
Use variant modifiers to apply a duration only in a specific state. For example,hover:duration-0 removes duration on hover, effectively making the animation instantaneous.
Breakpoints and media queries
Prefix any duration utility with a responsive breakpoint to apply it only at that screen size and above.Customization
Extending the theme
Add custom duration values by extendinganimationDuration in your tailwind.config.js file.