Answer the question
In order to leave comments, you need to log in
Script to add class on scroll?
What is the script for this task:
There are 4 blocks on the page, one under the other.
it is necessary if I am on block 1, then add the .active class.
When I scroll to another, it is removed there and added to the second.
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