javascriptjqueryfullpage.jsiscroll

Fullpage.js & iScroll dynamic content height refresh


When using the scrollOverflow:true option in fullpage.js, is it possible to manually call refresh() on the iscroll objects after content height changes?


Solution

  • Sure, just use the reBuild method of fullpage.js.

    From the docs:

    reBuild

    Updates the DOM structure to fit the new window size or its contents. Ideal to use in combination with AJAX calls or external changes in the DOM structure of the site.

    $.fn.fullpage.reBuild();