Search the docs

Search Keyframery's docs

Keyframery

Sidebar animation

The active item glides to the one you pick, the width follows your theme's curve, and labels leave before it closes.

with <Cuts />
Workspace

What moves

WhenWhat you seeTimingHow
The active item changesThe highlight glides to it200–320 msAutomatic
It collapses or expandsWidth on your curve; labels leave first and arrive last240 msAutomatic
A submenu opensEases open, like a collapsible180–220 msAutomatic
An item's icon, when pressedPlays its own move300–700 msIcon moves

Install

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

npx shadcn add sidebar

For each icon's own move when it's pressed, add Icon moves: npx shadcn add @keyframery/icon-moves.

Turn it off

Put data-cut="none" on a sidebar (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