$(document).ready(function() { $('#fullpage').fullpage({ autoScrolling: false, scrollOverflow: true }); $('#gal').each(element, new SimpleBar); //methods });