N
N
Natalia2018-03-05 17:35:33
JavaScript
Natalia, 2018-03-05 17:35:33

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

5 answer(s)
M
Maxim Timofeev, 2018-03-05
@webinar

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.

D
Dima Polos, 2018-03-05
@dimovich85

Watch the video: https://m.youtube.com/watch?list=PLPpaecEYRC8arPk-...
And this: https://m.youtube.com/watch?list=PLPpaecEYRC8arPk-...

D
display: block, 2018-03-05
@qork

https://codepen.io/ChrisJohnson/pen/dIGDA

A
Alexander Alekseev, 2018-03-05
@shure348

there is such a plugin viewportchecker.js that
catches elements that fall on the screen and rustles something with them

K
Kozlov, 2018-03-05
@romandkoz

https://wowjs.uk
Described in detail here: smartlanding.biz/animaciya-pri-prokrutke-stranicy.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question