You can check > https://webflow.com/website/Full-Page-js-speed
The structure is similar. I have a div wrapping all sections. The div has an id #fullpage. The sections have a custom attribute data-anchor=“p1” . So, if I have five sections they will have custom attributes from 1 to 5. You can see the anchors in the body code.
Code I’m using:
Head
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.8.1/jquery.fullPage.css">
Body
<script> $(document).ready(function() { $('#fullpage').fullpage({
responsiveWidth: 900,
verticalCentered: true,
navigation: false,
});
});
</script>
<script>$('#fullpage').fullpage({
anchors: ['p1', 'p2', 'p3', 'p4', 'p5'],
menu: '#myMenu'
responsiveWidth: 720,
scrollingSpeed: 1,
//Scrolling
css3: true,
autoScrolling: true,
fitToSection: true,
fitToSectionDelay: false,
scrollBar: true,
easing: 'easeInOutCubic',
easingcss3: 'ease',
animateAnchor: true,
loopBottom: true,
loopTop: false,
loopHorizontal: true,
continuousVertical: true,
continuousHorizontal: false,
scrollHorizontally: false,
interlockedSlides: false,
resetSliders: false,
fadingEffect: true,
normalScrollElements: '#somesectionsID',
scrollOverflow: false,
scrollOverflowOptions: true,
touchSensitivity: 5,
normalScrollElementTouchThreshold: 15,
bigSectionsDestination: null,
/*My additions below this point*/
showActiveTooltip: true,
});
});
</script>
<!-- The script bellow controls the speed -->
<script>
$('#fullpage').fullpage({
onLeave: function(index, nextIndex, direction){
var idx = Math.abs(index - nextIndex)*.250;
$.fn.fullpage.setScrollingSpeed(idx*5000);
}
})
</script>