Answer the question
In order to leave comments, you need to log in
How to change the block on scroll in JS?
There is a block, when scrolling it is fixed, and it is necessary that when the scroll reaches about half of the screen, this block is repainted in a different color.
How can I make JS track the coordinates from the starting point of this block, and after 700px on top add the desired class?
Help!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question