You can automatically update Bootstrap navigation or list group components based on scroll position to indicate which link is currently active in the viewport. See the examples.

Detailed documentation and more examples you can find in our Bootstrap Scrollspy Docs


Basic example

Note: Read the API tab to find all available options and advanced customization

Section 1

...

Section 2

...

Section 3

...

Subsection A

...

Subsection B

...

Section 4

...