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.
running and paused utilities set the animation-play-state property on an element, letting you start and stop animations without removing them from the DOM. This is particularly useful for pausing an animation on hover or disabling it based on user preference.
Reference
| Class | Properties |
|---|---|
running | animation-play-state: running; |
paused | animation-play-state: paused; |
Basic usage
Controlling animation play state
Applyrunning or paused alongside any animation class to set whether the animation is active.
Pausing on hover
A common pattern is to start an animation in the running state and pause it when the user hovers over the element.Applying conditionally
Hover, focus, and other states
Use variant modifiers to toggle play state based on user interaction. For example, pairpaused as the default with hover:running to play the animation only on hover.