jQuery ScrollWatch – Determine active Menu sections based on viewport scrolling
ScrollWatch is a jQuery plugin for determining active sections on the page based on viewport scrolling.
- determining which section on the page (or inside a custom scrollable element) is currently active
- many options, including multiple modes of resolution (visible height, focus line, custom, none)
- mapping the active section to an “active class” on some list of elements (e.g. menu items)