Search the docs

Search Keyframery's docs

Keyframery

Accordion animation

Sections expand and collapse on your theme's curve, and the chevron turns instead of being swapped.

with <Cuts />

What moves

WhenWhat you seeTimingHow
A section opens or closesThe height eases open and closed200 msAutomatic
The section's chevronTurns a half turn with the section200 msAutomatic

Install

Accordion is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:

npx shadcn add accordion

Turn it off

Put data-cut="none" on a accordion (or anything around it) to keep shadcn's own motion there. <Cuts responses="none" /> turns off every response across the app and keeps the cuts. With reduced motion, movement becomes a short fade or nothing.

On this page