@three11/scrollspy

Automatically update your navigation components based on scroll position to indicate which link is currently active in the viewport