OptionalenterCSS class(es) for the enter animation target state. Applied after enterFrom is removed to trigger the transition.
Use ! prefix (Tailwind important) if needed for specificity:
OptionalenterCSS class(es) for the initial state before enter animation starts.
Should include transition-* and duration-* for CSS transitions.
These are removed after the first frame to trigger the transition.
OptionalenterCSS class(es) for the final state after enter animation completes. These persist on the element after animation ends.
OptionalexitCSS class(es) to apply at the start of exit animation.
Should include transition-* and duration-* for CSS transitions.
OptionalexitCSS class(es) for the target state of exit animation. Applied after exit to trigger the transition.
Use ! prefix (Tailwind important) if needed for specificity:
OptionalonCalled before enter animation starts, after element is in DOM
OptionalonCalled before exit animation starts
OptionalonCalled after enter animation completes
OptionalonCalled after exit animation completes, before element is removed from DOM
OptionalrespectWhether to skip animations when user prefers reduced motion. When true and reduced motion is preferred, animations complete instantly.
OptionaltimeoutMaximum time in milliseconds to wait for animation/transition to complete. If exceeded, animation is considered complete.
Troubleshooting: If animations consistently hit this timeout,
the transitionend event isn't firing. Check that your CSS classes
include both transition-* AND duration-* properties.
Options for enter/exit animations on a single element.
See module docs above for Tailwind setup guide and common gotchas.