Skip to content
caliper ui pro docs

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.

Pro

Scroll inside the panel to move the camera in, and back to pull out.

The harbour at first light

End of the sequence.

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

terminal
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.

PropTypeDefaultDescription
frames *string[]—Frame URLs in order.
alt *string—What the sequence shows, read in place of it.
lengthnumber2.5How long the scroll through it is, in stage heights.
children((progress: number) => ReactNode)—Laid over the frames, e.g. a caption that changes with the scroll. Receives progress 0 to 1.

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.md

The index of every part is at /llms.txt.

More in Media