javascript - Autoplay for slides in the fullPage.js plugin -


how can implement autoplay slides if use 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> 

open google , type "autoplay fullpage.js". click on the first result , follow instructions:

$(document).ready(function () {     $('#fullpage').fullpage({         afterrender: function () {             setinterval(function () {                 $.fn.fullpage.moveslideright();             }, 1000);         }     }); }); 

demo online


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -