Plugins? Perhaps, but you could create any combination of animations that you could imagine using jQuery. If you have a firm grip on selectors and CSS, heaven is the limit! I suggest starting with the jQuery website and checking out a few examples .
To help get the ball, and maybe you will get some ideas if you are already familiar with jQuery, you can try the following ... figure out how far down your div page is, listen to scroll events, and when the div gets into focus (t .e. the page scrolls past the div position you designed), start the animation. Something like:
<div id="my_div">Some content</div> <script type="text/javascript"> $(document).ready(function() { var my_div = $("#my_div"); var div_top = my_div.offset().top; $(document).scroll(function() { if (div_top <= $(document).scrollTop()) { </script>
I hope I have not ruined my syntax!
Chris Kempen Feb 01 2018-12-01T00: 00Z
source share