Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FullPageJSJavaScript
jQuery(document).ready( function() {
new fullpage('#fullpage', {
//options here
autoScrolling:true,
scrollHorizontally: true,
anchors: ['firstPage', 'secondPage', 'thirdPage'],
lockAnchors: false,
menu: '#div_block-28-6',
afterLoad: function(anchorLink, index) {
jQuery('.fullpage-anchor').removeClass('anchor-active');
jQuery('a[href="#' + index["anchor"] + '"]').addClass('anchor-active');
}
});
//methods
fullpage_api.setAllowScrolling(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.