I was wondering how to add a class to an element when the user
scrolls to a certain point. On the current project I need to have a
smaller header drop into view when the larger one scrolls out of sight.
Even if there may be a more specified way of doing this, I would like
the “add class” option because it would be more versatile.