Search the docs

Search Keyframery's docs

Keyframery

Carousel animation

The arrows dip and nudge while pressed; the slides keep Embla's own motion.

with <Cuts />
1
2
3
4

What moves

WhenWhat you seeTimingHow
An arrow is pressedDips and nudges 2 px toward its direction70–150 msAutomatic
The slides moveEmbla's own drag and snapits ownIts own motion

Install

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

npx shadcn add carousel

Turn it off

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