Progress Nav
✓ Published0🌍 Public
Aabernier
Last edited Jan 23, 2026
Created on Jan 23, 2026
This example shows a page navigation where a smooth, highlighted path marks the table of contents sections currently in view as the user scrolls. The visualization uses an SVG path as a progress marker, with its stroke-dasharray and stroke-dashoffset updated dynamically to reveal only the portion corresponding to visible content. It relies on the `getBoundingClientRect` API to determine element visibility and the SVG `getTotalLength` method to measure path segments. The marker animates via CSS transitions, and the layout is styled with SCSS.
AI-generated description