Fullpage.js: Next and Previous buttons

99封情书 提交于 2019-12-03 12:28:39

Just add this:

$('#button1Id').click(function(){
    $.fn.fullpage.moveSectionDown();
});


$('#button2Id').click(function(){
    $.fn.fullpage.moveSectionUp();
});

And better also to use the option fixedElements in case.

$.fn.fullpage({
    fixedElements: '#button1Id, #button2Id'
});


UPDATE


If you are using fullpage.js 2.X then you dont need to use the option fixedElements. Just using a wrapper for the plugin and placing the fixed elements outside the wrapper will work fine if you add the fixed positioned styling in your CSS.

Example online

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!