scrollOverflow: true on afterSlideLoad

Using fullpage.js and Foundation, I want to set scrollOverflow: false to true if you are on a slide only.

I thought something like this would work but it doesn’t:

$('#fullpage').fullpage({
afterSlideLoad: function( anchorLink, index, slideAnchor, slideIndex){
var loadedSlide = $(this);
if(slideIndex == 1){
$fn.fullPage().setScrollOverflow(true);
};
}
})

Fairly new to this so if any more info is needed feel free to ask.

Thanks,

Add Comment



  • 0 Answer(s)



  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.