WordPress.org

Ready to get started?Download WordPress

Forums

imPress
Autoplay (1 post)

  1. dj_nikao
    Member
    Posted 11 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.