Bootstrap Home

Scrollspy

Create A Scrollspy

The following example shows how to create a scrollspy.


Navbar With Dropdown

Scroll the area below the navbar and watch the active class change. The dropdown items will be highlighted as well.


Nested Nav

Scrollspy also works with nested .navs. If a nested .nav is .active, its parents will also be .active. Scroll the area next to the navbar and watch the active class change.


Example With List-Group

Scrollspy also works with .list-groups. Scroll the area next to the list group and watch the active class change.