Scrollspy

Scrollspy automatically highlights navigation links based on the current scroll position on the page.

Create a Scrollspy

The example below demonstrates how to implement a scrollspy feature.

Output: