Sticky Navbar Scroll Behavior
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Lightweight passive scroll implementation updating smoothly via GPU transforms and inline SVG path math.
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.
Scroll specimen body or adjust progress slider control.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| accentColor | string | '#536dfe' | Linear bar & SVG circle stroke color. | Colors reading gauge. |
| ringSize | number | 52 | Circular SVG gauge size in pixels. | Resizes dial diameter. |
| showLinearBar | boolean | true | Shows or hides paired linear progress rule. | Toggles top horizontal line. |
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Two-column sticky reveal pairing scrollable documentation items with a stationary visual deck.
Continuous 0..1 scrub timeline transforming scale, rotation, and border-radius smoothly.