Fullpage.js: Next and Previous buttons
问题 I have two buttons: #btn1 and #btn2 ; and I want them to go back and forth when clicked. So #btn1 must go to previous slide and when I click #btn2 it goes to the next slide. I use fullPage.js for slides. In documentation says that must me use this $.fn.fullpage.moveSlideUp(); $.fn.fullpage.moveSlideDown(); But I'm amateur with Javascript . Can you help me? 回答1: Just add this: $('#button1Id').click(function(){ $.fn.fullpage.moveSectionDown(); }); $('#button2Id').click(function(){ $.fn.fullpage