Blocks
Scene story block
A chapter section told by scrolling, with a 3D scene beside it. As you read, the scene tips toward you and its layers spread apart, and the layer the chapter is about lights while the others dim. The chapters are complete without the scene.
pnpm dlx shadcn@latest add @caliper/scene-story-blockHow it fits together
Three layers, one release
Every release touches data, logic and the interface. Here is where each change lives.
Chapter 1
Your data, laid flat
Everything starts on the lowest plane: tables, events, the records that already exist. Nothing here is decorative.
Chapter 2
Logic on top of it
Rules and jobs sit one level up. You can see what each depends on, because it is directly above it.
Chapter 3
An interface for people
The top plane is what people touch. It is the only layer most of them ever see.
Chapter 4
All of it, shipping
The layers pull apart so each can change on its own. One release, three places to look.
When to use
Use it for
- Explaining a product or an architecture in layers: data, logic, interface.
- Three to five chapters where each one names a part of a whole.
Skip it when
- Content that is not about parts of one thing; use the steps block.
- A hero. The scene explains; it does not decorate.
Decisions
Why it is built this way, so you know what to keep when you change your copy.
Behaviour
- The text stands on its own
- The chapters are headed sections in a scrollable region. The scene is hidden from assistive technology and every fact in it is in the text.
- Native scroll only
- No scroll hijacking and nothing pinned. Tab and the arrow keys scroll the region, and a button per chapter jumps to it.
Usage
- On phones the scene comes first
- Under 600px the scene is shorter and sits above the text, which scrolls in its own box; each chapter keeps its lit layer.
Installation
pnpm dlx shadcn@latest add @caliper/scene-story-block
Adds its 9 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.
Usage
Import it from your copy of the source. The example behind the preview comes with the source.
import { SceneStoryBlock } from "@/components/ui/scene-story-block"
The worked example comes with Pro
The 21-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
SceneStoryBlock
component
Accessibility
It exposes region and group semantics, with aria-label, aria-labelledby, aria-hidden and aria-current kept in step with state.
No custom key handling; Tab and the native activation keys do the work.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.
Related
- Scroll storySections that change as you scroll.
- Steps blockHow it works, step by step, with an honest time and what exists after each step.
- Chart story blockA number told as a story: the chart draws in once, then each beat moves a marker to its moment and explains it. Readers step through; nothing advances on its own.