Scrollspy automatically highlights navigation links based on the current scroll position on the page.
The example below demonstrates how to implement a scrollspy feature.