Search the docs

Search Keyframery's docs

Keyframery
Components

Tabs

The tab pill leads and the new panel follows a beat later, like sound leading picture in a J-cut.

with <Cuts />
Signed in as ada@studio.dev.

What it fixes

Stock tabs swap their panel in a single frame, and the frame snaps to the new height. With the J-cut, the active pill whips across first, the old panel leaves, and the new panel enters 70 ms later. Meanwhile the frame's height morphs smoothly. Your eye follows the pill, and the panel arrives where you're already looking.

Install

npx shadcn add tabs

Choose a cut

Put data-cut on the Tabs root:

<Cuts tabs="whip" />
<Tabs data-cut="fade" defaultValue="account">…</Tabs>

Prop

Type

CutWhat plays
j-cutthe pill whips over (200 ms), the old panel leaves (180 ms), the new panel enters 70 ms later (300 ms), and the height morphs (320 ms)
whipno lead, 160 ms, with a 4px motion blur on both panels and the height morph
fadea 180 ms crossfade and the height morph

On this page