0

Hopscotch work well for me in developing tour for my website. I am looking for a way to automatically execute the tour steps with some custom time delay, but didnt' found any API for the same.

1 Answers1

2

The Hopscotch API provides a nextStep() method which could be called in inside of JavaScript's setInterval() method. Something like this would show the next step every 3 seconds.

setInterval(function() { hopscotch.nextStep() }, 3000); 

Here's a working example JSFiddle.

Michael Hommé
  • 1,696
  • 1
  • 14
  • 18