Add class when scroll a certain amount
-
Hi,
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.
I am a relative newbie with jquery so I would prefer javascript. However, any help would be much appreciated.
Thank you.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add class when scroll a certain amount’ is closed to new replies.