Sticky Navbar Scroll Behavior
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Engineered with pure CSS transitions and scrubbed state hooks so narrative visuals remain responsive across desktop and touch sliders.
Drag timeline scrub bar or jump across beat markers.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| beats | StorytellingBeat[] | (required) | Checkpoint labels along 0..1 timeline. | Determines active checkpoint styling. |
| progress | number | null | null | Externally scrubbed timeline fraction (0..1). | Synchronizes shape with parent scroll value. |
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
01. Passive Listener Architecture: Measures container scrollTop ratio without layout polling.
02. Top Hairline Track: Maps progress cleanly across hardware scaleX transform.
03. SVG Dashoffset Geometry: Computes stroke circumference accurately from ring diameter.
04. Tabular Clarity: Prevents horizontal numeric wobble as percentages cross two digits.
05. End Checkpoint: Settles crisp at 100% upon reaching footer boundary.
Linear edge bar paired with tabular SVG stroke-dashoffset scroll completion indicator.
Two-column sticky reveal pairing scrollable documentation items with a stationary visual deck.