Q:

Skip Sections in fullpage.js

I'm using fullpage.js and this is my HTML (something similar structure wise):
<div class="fallpage">
 <div class="section">content</div>
 <div class="section ignore"></div>
 <div class="section">content</div>
 <div class="section ignore"></div>
 <div class="section">content</div>
</div>

I would like to skip the ignore sections. Ideally, hovering over them at the scrolling speed but not stopping at them like a normal section.
How can that be done?

A:

Demo online
You could do this:
$('#fullpage').fullpage({
    sectionsColor: ['yellow', 'green', 'purple', 'orange'],

    //events
    onLeave: function(index, nextIndex, direction) {
        if($('.fp-section').eq(index).hasClass('ignore')){
            setTimeout(function(){
                $.fn.fullpage.moveTo(nextIndex + 1);
            })

        }
    }
});

Then add the class ignore to any section you want to skip:
<div class="section ignore"></div>

