Samoilenko Alexey February 2016

Autoplay for slides in the fullPage.js plugin

How can I implement autoplay for slides if use the fullPage.js plugin?

<div id="fullpage">
<div class="section">
  <div class="slide"> Slide 1 </div>
  <div class="slide"> Slide 2 </div>
  <div class="slide"> Slide 3 </div>
</div>
<div class="section">Some section</div>
<div class="section">Some section</div>

Answers


Alvaro February 2016

Open Google and type "autoplay fullpage.js". Click on the first result and follow the instructions:

$(document).ready(function () {
    $('#fullpage').fullpage({
        afterRender: function () {
            setInterval(function () {
                $.fn.fullpage.moveSlideRight();
            }, 1000);
        }
    });
});

Demo online

Post Status

Asked in February 2016
Viewed 1,273 times
Voted 13
Answered 1 times

Search




Leave an answer