Support » Plugin: imPress » Autoplay

  • I’m trying to set the impress gallery in AUTOPLAY mode.

    Could you help me to do this please ?

    I’ve found this sample code to do this :

    How to make impress.js slideshow auto play and loop
    <script>
      var impress = impress();
      impress.init();
    
      document.addEventListener('impress:stepenter', function(e){
        if (typeof timing !== 'undefined') clearInterval(timing);
        var duration = (e.target.getAttribute('data-transition-duration') ? e.target.getAttribute('data-transition-duration') : 2000); // use the set duration or fallback to 2000ms
        timing = setInterval(impress.next, duration);
      });
    </script>

    http://wordpress.org/extend/plugins/wp-js-impress/

  • The topic ‘Autoplay’ is closed to new replies.