Scroll down to see the menu to highlight the current section and to see example code.
$ npm i -S storm-scroll-spy
Either import and initialise using a named import:
import ScrollSpy from 'storm-scroll-spy';
ScrollSpy.init('.js-scroll-spy');
Or async using storm-load.js, add the .standalone file to your project, then initialise using the global name:
Load('/content/js/async/storm-scroll-spy.standalone.js')
.then(() => {
StormScrollSpy.init('.js-scroll-spy');
});