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,