Skip to main content
Participating Frequently
November 26, 2020
Question

Starting an Animate canvas animation only when the element comes in view

  • November 26, 2020
  • 1 reply
  • 535 views

We exported an animation from Animate and included the element in a page, we need the animation starts only when that DOM element (a specific DIV) comes in view in the page.
Please be aware that the page is responsive so we cannot determine how many pixels that element has above.

 

Thanks for any help.

 

Franco

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 26, 2020
Participating Frequently
November 26, 2020

You mean that we need additional .js scripts such

<script type="text/javascript" src="https://rawgit.com/imakewebthings/waypoints/master/lib/jquery.waypoints.min.js"></script>

<script type="text/javascript" src="https://rawgit.com/imakewebthings/waypoints/master/lib/shortcuts/inview.js"></script>

 

for have it working?

 

 

kglad
Community Expert
Community Expert
November 26, 2020

i'm sure you could work-around using helper libraries but you would have more work to do.