Any one know a good library for elements entering animation while page scrolling. I have used animate it library, its awesome, lite and easy to handle but not working with newest version of jQuery(3.x). Somebody suggest me a good free library.
Asked
Active
Viewed 675 times
3 Answers
0
You may try animate-on-scroll:
https://michalsnik.github.io/aos/
Or if you need a more advanced library with lot more control in your hands, try ScrollMagic:

Anshul Sanghi
- 84
- 2
- 9
-
I am glad. Welcome :) – Anshul Sanghi Nov 02 '16 at 11:52
0
You could use the onscroll
event handler.
window.onscroll - function() {
var el = document.getElementById('animateMe');
el.addClass('anime');
}
where you have the animation included in the .anime
class.
CSS
.anime {
animation: yourAnimation 2s ease-out;
}
@keyframes animation {
0% {
background: blue;
}
100% {
backgroudn: red;
}
}
If you need the animation to stop when not scrolling, see How do I know when I've stopped scrolling Javascript.