Answer the question
In order to leave comments, you need to log in
How to start animation when scrolling the page?
Good afternoon!
There is animation.
Tell me, please, how to make it start working not immediately after loading the page, but only when you scroll to the desired block, where does it lie?
Only the jquery library is used, and that's it, no others are used. Also, no js plugins are used.
Thanks in advance for your reply.
Answer the question
In order to leave comments, you need to log in
We catch the scroll, determine whether the block is in the visible part, add a class, hook the animation in css to this particular class.
Watch the video: https://m.youtube.com/watch?list=PLPpaecEYRC8arPk-...
And this: https://m.youtube.com/watch?list=PLPpaecEYRC8arPk-...
there is such a plugin viewportchecker.js that
catches elements that fall on the screen and rustles something with them
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question