Search the docs

Search Keyframery's docs

Keyframery

Attachment animation

Attachments ease in when added; a finished upload gives a small punch and a failed one shakes.

with <Cuts />
release-notes.pdfPDF · 1.2 MB

What moves

WhenWhat you seeTimingHow
An attachment is addedScales from 96% and fades in220 msAutomatic
Upload finishesThe thumbnail gives a small punch300 msAutomatic
Upload failsOne short shake240 msAutomatic
Its action buttonsDip while pressed70 ms in, 150 ms outAutomatic

Removing an attachment from a list folds it away with ListCut.

Install

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

npx shadcn add attachment

Turn it off

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