jquery - 'active' navigation item depends on certain section -
i'm using plugin scrollify landing, great, can't solve 1 problem. have 8 sections, of them has different "data-section-name" attribute. have navigation, looks circles 'active' class. wrote function, when click on circle, becomes 'active' , scroll section. when use scroll mouse, circles' 'active' doesnt' change. should do? how can identify section , 'active' cirlcle?
you can active section's data using $.scrollify.current()
method on before()
or after()
scrollify()
property. matching data, can add active class navigation.
find below fiddler reference.
here used fixed-nav on left scroll navigation indication(not captures click event). hope helps.
Comments
Post a Comment