Skip to content
Knowns UI
Get ProSign in

Phone Scroll Story

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

Phone side

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
Default0.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
Default0.9 a scene + 0.6
Scroll length in views besides the stage itself.
phoneWidth
number
Default300
Widest the phone gets in px; it also shrinks to fit the stage height.
index / indexLabel
boolean / string
Defaulttrue / "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.

States

Fan closing
Side phones slide out, turn and fade; the phone glides to its side; the copy fades in
Defaultthe first introShare of the scroll
scroll-linked, ease in-out
Scene change
The screen cross-fades, the copy rises 8px in after a beat
Default280ms / 180ms
ease out
Index press
Scrolls the page to that scene
Defaultsmooth, 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

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.

Need help?

Stuck on Phone Scroll Story, or found something off? We read every message.