The following example shows how to create a scrollspy.
Scroll the area below the navbar and watch the active class change. The dropdown items will be highlighted as well.
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.
Scrollspy also works with .list-groups. Scroll the area next to the list group and watch the active class change.