MenuSpy is a JavaScript library to make navigation menus highlight the item based on currently in view section.
Website Demo