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.
repeat-{amount} utilities set the animation-iteration-count property on an element, controlling how many times an animation plays before stopping. Use repeat-infinite to create looping animations, or repeat-1 when you want the animation to run exactly once.
Reference
| Class | Properties |
|---|---|
repeat-0 | animation-iteration-count: 0; |
repeat-1 | animation-iteration-count: 1; |
repeat-infinite | animation-iteration-count: infinite; |
Basic usage
Changing animation iteration count
Apply arepeat-{amount} class alongside any animation class to control how many times the animation cycles.
Applying conditionally
Hover, focus, and other states
Use variant modifiers to change the iteration count in a specific state. For example,hover:repeat-1 stops the infinite loop when the user hovers.
Breakpoints and media queries
Prefix any repeat utility with a responsive breakpoint to apply it only at that screen size and above.Customization
Extending the theme
Add custom iteration count values by extendinganimationRepeat in your tailwind.config.js file.