javascript - Scrollify.js add class on current section -


am trying add 'active' class on current section in page using scrollify.js.

am able index value, not section id or section class! how current section's id or class.

here sample code tried achieve.

<section id="first" data-section="first" class="scroll-section"> </section>  before:function(index, sections) {     alert(index); }, 

this return index value. trying section id first.

thanks in advance.

call $.scrollify.current() returns current section.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -