Sticky Navbar Scroll Behavior
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Crafted with GPU translate3d + skewX modulo wrapping for glassy 60Hz/120Hz performance across displays.
Scroll mouse wheel over tracks or trigger velocity impulse boost.
Zero external npm dependencies.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| baseSpeed | number | 12 | Calm baseline cruise speed across tracks. | Tunes base marquee pace. |
| skewStrength | number | 9 | Maximum italic skewX slant angle in degrees. | Controls peak kinetic tilt. |
| accentColor | string | '#536dfe' | Accent glyph delimiter highlight color. | Tints track separator symbols. |
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.