Callback handler when scroll starts and scroll finishes. #840
-
Hi, I was wondering if Joyride provides any callback handler which handles when a scroll starts and when a scroll finishes when we transition from one Step to the next Step. For ex:- Our spotlight is showing in the centre of the screen and if I click next, the page scrolls to bottom and the next Step is shown in the spotlight. So, is it possible by Joyride to detect when the scroll finishes and the next spotlight is displayed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @devden0702-pepper-content There's only one callback that is triggered when the state changes. I haven't tried, but I think you can achieve that by tracking the step's lifecycle between |
Beta Was this translation helpful? Give feedback.
-
Yeah, I don't remember handling the scroll to lifecycle changes, but worth the try. |
Beta Was this translation helpful? Give feedback.
Hey @devden0702-pepper-content
There's only one callback that is triggered when the state changes.
I haven't tried, but I think you can achieve that by tracking the step's lifecycle between
step:before
andtooltip
(orbeacon
if continuous is false).