Div in viewport, append css

Hey, is there a method that after scroll and a div fills viewport, css can be updated, i.e.:

#div1, #div3
css .menu remove class, add class ‘dark’

#div2
css .menu remove class, add class ‘light’

i would love to google it, but i dont know what its called :slight_smile:

Do you mean something like this?

We had a similar question a while ago that resulted in this codepen.

Here’s another jQuery plugin to accomplish this. No shortage, I suppose! ^^

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.