Does anyone know how to use scrollspy without using bootstrap? I am trying to get this to work in one of my projects using this repository:
https://github.com/sxalexander/jquery-scrollspy
but it just doesn't do what bootstrap does. Li tags are not marked active :( Any help would be appreciated.
I tried to do this:
$('#intel_nav').scrollspy({ //n: $('#nav').offset().top, onEnter: function (element, position) { console.log(element); $("#intel_nav").addClass('moo'); }, onLeave: function (element, position) { $("#intel_nav").removeClass('out'); } });
The item looks like the actual menu, so I have no idea how to actually get the identifier of the item I'm hanging right now.
source share