SlideDeck Auto Play With Reload Function


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. var mySlideDeck = $('.slidedeck');
  3. var interval = 1000;
  4. var endDelay = 2000;
  5. mySlideDeck.slidedeck({
  6. autoPlay: true, // enable autoPlay
  7. autoPlayInterval: interval, // delay before advancing
  8. complete: function(){
  9. if(mySlideDeck.slidedeck().current == mySlideDeck.find('dt').length){
  10. setTimeout(function(){
  11. mySlideDeck.slidedeck().goTo(1);
  12. }, endDelay); // Delay before going back to Slide 1
  13. }
  14. }
  15. }).vertical();
  16. </script>

URL: http://www.slidedeck.com/usage-documentation/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.