A phone that pins while the page scrolls through its scenes: it can open as a fan that closes into one phone, then each scene changes the screen and the copy beside it. A scene index jumps to any scene.
On this page
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- scenes
{ id, label, screen, aside? }[]- One per chapter: the phone's screen, what stands beside it, and its name in the index.
- fan
ReactNode[]- Screens of 2 or 4 side phones that open around the phone and close as the story starts.
- introShare
number- Default
0.2 / 0 - Share of the scroll the fan takes to close (0 without a fan).
- phoneSide
"left"|"right"- Default
"left" - Where the phone stands once the story runs.
- scrollLength
number- Default
0.9 a scene + 0.6 - Scroll length in views besides the stage itself.
- phoneWidth
number- Default
300 - Widest the phone gets in px; it also shrinks to fit the stage height.
- index / indexLabel
boolean / string- Default
true / "Scenes" - The scene buttons under the stage, and their accessible name.
- onSceneChange
(index, scene) => void- When the active scene changes, to carry it into the rest of the page.
- overlay
ReactNode- Drawn on the phone above every screen, such as a notch island.
- backdrop
ReactNode- Drawn behind the phone on the pinned stage, a full view tall: a surface the phone stands on or a photo. Decorative.
- root / viewHeight
RefObject / string- Default
- / "100svh" - A scroll container and its height, when the story scrolls inside one.
- screenClassName
string- Class of each phone screen.
| Prop | Type | Default | Description |
|---|---|---|---|
| scenes | { id, label, screen, aside? }[] | - | One per chapter: the phone's screen, what stands beside it, and its name in the index. |
| fan | ReactNode[] | - | Screens of 2 or 4 side phones that open around the phone and close as the story starts. |
| introShare | number | 0.2 / 0 | Share of the scroll the fan takes to close (0 without a fan). |
| phoneSide | "left" | "right" | "left" | Where the phone stands once the story runs. |
| scrollLength | number | 0.9 a scene + 0.6 | Scroll length in views besides the stage itself. |
| phoneWidth | number | 300 | Widest the phone gets in px; it also shrinks to fit the stage height. |
| index / indexLabel | boolean / string | true / "Scenes" | The scene buttons under the stage, and their accessible name. |
| onSceneChange | (index, scene) => void | - | When the active scene changes, to carry it into the rest of the page. |
| overlay | ReactNode | - | Drawn on the phone above every screen, such as a notch island. |
| backdrop | ReactNode | - | Drawn behind the phone on the pinned stage, a full view tall: a surface the phone stands on or a photo. Decorative. |
| root / viewHeight | RefObject / string | - / "100svh" | A scroll container and its height, when the story scrolls inside one. |
| screenClassName | string | - | Class of each phone screen. |
States
- Fan closing
Side phones slide out, turn and fade; the phone glides to its side; the copy fades in- Default
the first introShare of the scroll - scroll-linked, ease in-out
- Scene change
The screen cross-fades, the copy rises 8px in after a beat- Default
280ms / 180ms - ease out
- Index press
Scrolls the page to that scene- Default
smooth, instant with reduced motion - -
- Narrow, short, reduced motion, server
A plain stack of phone and copy per scene- -
| Prop | Type | Default | Description |
|---|---|---|---|
| Fan closing | Side phones slide out, turn and fade; the phone glides to its side; the copy fades in | the first introShare of the scroll | scroll-linked, ease in-out |
| Scene change | The screen cross-fades, the copy rises 8px in after a beat | 280ms / 180ms | ease out |
| Index press | Scrolls the page to that scene | smooth, instant with reduced motion | - |
| Narrow, short, reduced motion, server | A plain stack of phone and copy per scene | - | - |
Accessibility
- Every scene's copy is in the page. On the pinned stage, the inactive screens and asides are hidden from assistive tech and inert.
- The side phones of the fan are decoration: aria-hidden and inert.
- The scene index is a nav of buttons; the active one has aria-current.
When to use
When to use
- A mobile app landing where one phone pins and the page scrolls through what it does, scene by scene.
- An opening fan of several screens that closes into the one phone the story follows.
When not to use
- A laptop that opens as the page scrolls: use Device Frame.
- A product window under a pinned title: use Scroll-over Hero.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Phone Scroll Story to my app and wire it to my own data.
- I need a mobile app landing where one phone pins and the page scrolls through what it does, scene by scene. Set that up with the Knowns UI Phone Scroll Story.
- Which Phone Scroll Story props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "phone-scroll-story" }) and search_docs({ query: "phone scroll story" }). Pro props, full examples and source come back once your license key is in the MCP config.