Search the docs

Search Keyframery's docs

Keyframery

Field animation

Choice cards change colour instead of jumping, and an error shakes once and rises in.

with <Cuts />

What moves

WhenWhat you seeTimingHow
A choice card is pickedIts colours ease over150 msAutomatic
It turns invalid after a submitIts control shakes once240 msAutomatic
The error message appearsRises in160 msAutomatic

Install

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

npx shadcn add field

Turn it off

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