I would love to have the ability to hide the tour temporarily and then show it again.
I want the user to be able to perform some actions in between the steps.
I can mimic this behavior by saving the last non-undefined current, calling stop(), and then calling goTo(lastCurrent). However, it's far from ideal, as it has the setSpot(ZERO_SPOT) on the stop() method it performs some animations (at least in slide).
The context could provide a simple hide() and show() that is managed by the library itself, making it easier to use and with better (or no) transitions. Also, calling next()/previous() could still work anyway :)
Hey @ravanscafi, thanks for showing interest in the library, as for your suggestion, I'll give it a try but will be using pause() instead of hide() for it to fit better with the existing methods.
Hello 👋
I would love to have the ability to hide the tour temporarily and then show it again. I want the user to be able to perform some actions in between the steps.
I can mimic this behavior by saving the last non-undefined
current
, callingstop()
, and then callinggoTo(lastCurrent)
. However, it's far from ideal, as it has thesetSpot(ZERO_SPOT)
on thestop()
method it performs some animations (at least inslide
).The context could provide a simple
hide()
andshow()
that is managed by the library itself, making it easier to use and with better (or no) transitions. Also, callingnext()
/previous()
could still work anyway :)