This was actually a bug turned into a “feature”. It happened because of the clip-path property I added for the wavy look.
However, in a typical setting, you would do that by detecting the scroll position using javascript. Here is a related discussion - Auto Scroll - Automatically add content as the user scrolls the mouse wheel - #6