The Animation component provides a simple way to add animations to any element with value-based animation props, configurable triggers, and fine-grained control over timing and easing. Each animation prop accepts a value representing the initial state.
All animations are value-based - the value represents the initial state, and it animates to the natural end state (opacity: 1, scale: 1, blur: 0, translate: 0).
Use the trigger prop with interactive elements like NavIcon or Button. For controlled state (like toggling NavIcon's active state), use triggerType="manual" with the active prop.
Customize animation feel with different easing curves: linear, ease, ease-in, ease-out, ease-in-out, spring, bounce.
When used without a trigger, animations apply directly to the element.
Enable portal rendering to display animated content in a positioned overlay using Floating UI. Perfect for tooltips, popovers, and hover cards.
Stack multiple animations by providing multiple props. Each value represents the initial state.