To disable fullpage.js scrolling after the first section in your Webflow project, you'll need to use logic in custom code that limits fullpage.js behavior based on the current section.
.section
is a slide.data-anchor="first"
data-anchor="second"
afterLoad
callback to destroy scrolling once the first section is passed.fullpage_api.destroy('all')
to stop fullpage.js.tag and add:
<script> var fullPageInstance; document.addEventListener('DOMContentLoaded', function () { fullPageInstance = new fullpage('#fullpage', { autoScrolling: true, navigation: true, onLeave: function(origin, destination, direction){ if(origin.index === 0 && direction === 'down'){ fullpage_api.destroy('all'); } } }); });</script>
origin.index === 0
).#fullpage
..section
(or whatever selector you're using).To disable fullpage.js scrolling after the first slide, use the onLeave
callback to detect when the user scrolls from the first to the second section, then call fullpage_api.destroy('all')
to deactivate fullpage.js. This allows normal scrolling behavior beyond the first slide.