From the course: Scrollytelling: Creating a One-Page Web Experience

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Beyond triggering: Progressive dynamic actions

Beyond triggering: Progressive dynamic actions

From the course: Scrollytelling: Creating a One-Page Web Experience

Beyond triggering: Progressive dynamic actions

- [Instructor] So there's one more important thing to say about Scrollama. In addition to the ability to trigger an event, I'm going to change the rectangle to blue, that's great. I can also track the progress of the scroll. So as I scroll a little bit more, a little bit more, I can actually trigger ongoing events based on how far I have scrolled. So that's a nice addition that Scrollama has that Waypoints does not have. Nothing's happening right now, so let's go make that happen. So if you remember, we have the on step enter call for Scrollama, which triggers an event when you enter a step, when the scrollable thing crosses a certain threshold, and there's the on step exit, which again, triggers another event when that element is leaving the stage, the bottom part of it is crossing that same threshold. In addition to those, there's also on step progress, which looks exactly the same, there's still a response object…

Contents