Image sequence
A film scrubbed by the page: the frames stay pinned while you scroll through the section, each scroll position showing its frame, forward or back. Frames load coarse to fine, so the nearest loaded one stands in until its neighbour arrives.
When to use
- Product reveals and explainers where scrolling should turn the object or move the camera.
- Before and after stories told in many steps.
When not to use
- Video people want to watch at its own pace; use a player.
- Pages on slow connections without a light set of frames.
Installation
pnpm dlx shadcn@latest add @caliper/image-sequence
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ImageSequence
4 props
Also accepts the native props of its root element and a ref.
frameOrder
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img semantics, with aria-label kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/image-sequence.mdThe index of every part is at /llms.txt.