Chapter 11. Reacting to Scrolling
We can create some fun effects by reacting to our site visitors when they scroll up/down through our pages. As they scroll down the page, we can create parallax effects, animate various elements on the page, and trigger other changes on the page as well. This helps our pages to feel dynamic and alive—we can turn the simple act of scrolling through a page to read the content into an interactive one.
In this chapter, we will:
- Set up an HTML document (page) divided into sections
- Create a parallax effect in one of the sections on the page
- Trigger an animation in one of the sections on the page
- Add and activate navigation for the page that also reacts to scrolling