Sticky Navbar Scroll Behavior
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Keeps key product diagrams fixed in focus while readers move down narrative explanations.
Scroll left steps or click step entries to morph sticky panel.
npm install framer-motionSmoothly crossfades active card visuals inside sticky panel.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| sections | StickyRevealSection[] | (required) | Ordered narrative step entries paired with visual metrics. | Maps scroll steps cleanly. |
| heightClass | string | 'h-[290px]' | Height Tailwind class bounding scrollable panel. | Sizes showcase viewport height. |
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.
Continuous 0..1 scrub timeline transforming scale, rotation, and border-radius smoothly.