Answer the question
In order to leave comments, you need to log in
How to perform an action by scrolling to a certain DIV ?
I don’t know how to google correctly, so I ask you, colleagues.
On all sorts of landing pages, you can often see how the animation is performed when a person scrolls to a certain diva, so: how is this implemented? Or leave links to examples.
Answer the question
In order to leave comments, you need to log in
The use of scrollTop takes place when there are literally a couple of elements on the page that need to be tracked, otherwise there is a lot of script, and moreover, it is repetitive.
I would recommend using the
jQuery Waypoints plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question