Sticky Navbar Scroll Behavior
Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.
Keeps background & revealed foreground layouts stationary while animating mask geometry seamlessly at zero layout cost.
Switch geometry mode and scrub percentage across frame.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| maskMode | 'circle' | 'inset' | 'diagonal' | 'circle' | Geometric clip-path morphology preset. | Selects radial, boxed, or diagonal wipe geometry. |
| revealPercent | number | 58 | Mask expansion reveal percentage (0..100). | Controls extent of revealed layer. |
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.