fullPage.js – always scroll from top within sections

Scroll long sections always from top.
This works only for section without slides.
Tested with fullPage 2.8.9.

  scrollOverflow: true,
  onLeave: function(index, nextIndex, direction){
    $('.fp-scrollable').each(function() {
      var iScrollInstance = $(this).data('iscrollInstance');
      iScrollInstance.scrollTo(0,0, 2000);

Leave a Reply

Your email address will not be published. Required fields are marked *

− 2 = 2

This site uses Akismet to reduce spam. Learn how your comment data is processed.