About This Course

This tutorial will target a navbar element on the page and change both background color and text color when the user scroll 100px from top of the page.

Modules

Function to capture the scroll event whenever user scrolls

In this lesson, you will learn how to add Javascript functions to your webpage which will toggle colours whenever the user scrolls.

0 / 3 Steps