0%

api

Animate

Universal wrapper with preset, trigger, and asChild support.

Playground

Scroll-based previews need you to scroll into view.

Live preview

Code

<Animate preset="bounceIn" duration={1}>
  <Button>Bounce in</Button>
</Animate>

shadcn add

npx shadcn@latest add @void/animate

# Or URL (no .json):
npx shadcn@latest add https://void.ui.unsanity.ai/r/animate

Props

PropTypeDefaultDescription
presetstring | string[]fadeInPreset name(s) from the registry
triggermount | view | scrub | hover | clickmountWhen to run the animation
variantsubtle | normal | dramaticnormalIntensity variant
asChildbooleanfalseMerge onto child element (Radix Slot)