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

Unlock the full course today

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

Clean it up

Clean it up

- [Instructor] So the last part of any development process, of course, is you need to test and debug. And with Scrollytelling, we've already gone through this thing and the boxes are changing the color, and this circle is doing what I want it to do at every step along the way. But as I mentioned earlier, as I go in reverse, I'm noticing it's not resetting properly. So opacity, it's invisible, and I get to size and it's invisible and then it appears, but it's small and slightly translucent. So it's not working the way I want it to work. I want to go back in and fix that. And so the way I'm going to do that is I'm not going to do it the perfect way, I'm just going to do it a quick way. So what I'm going to do is I created a very simple reset script. It's not perfect, but it's good enough just to demonstrate what's going on here. And what I want to have happen is I want this reset to be triggered every time I exit a step.…

Contents