From the course: Scrollytelling: Creating a One-Page Web Experience
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Technology options
From the course: Scrollytelling: Creating a One-Page Web Experience
Technology options
- [Instructor] In 2012, when the first scrollytelling experience was made, and we usually point to the New York Times Snowfall story, as that first example, someone had to write custom code to make all of that really cool stuff happen. And that's always an option, you can always roll your own scrollytelling library or drop custom code in your project. I'm not going to teach this method because there are too many other options out there that make this unnecessary I think. But if you did want to do it, conceptually you would just have a function that's repeatedly running as the user scroll, something like this window.addeventlistenerscroll,scrollfunk. Literally this is saying, "Hey window, listen for scrolling," and this is built into the browser. And then every time you're scrolling trigger this function that I'm calling scroll funk, and that can be called anything. The window is constantly listening for the scroll…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.