Description:
active-menu-link is a pure JavaScript smooth scroll & scrollspy library which highlights the active menu item based on the scroll position.
A typical use of this library is to create a sticky header navigation for your single page app that allows the user to smoothly scroll through page sections while highlighting the active menu item.
Reference source: https://github.com/Kosalexei/active-menu-link
How to use it for brizy cloud:
- Create menu links with anchor #name-id1, #name-id2, #name-id3,...
- Add ID name-id1, #name-id2, #name-id3,... for anchor somewhere
- Add menu element and set id="brz-menu__scrollspy"
Code