I have created an HTML 5 canvas presentation in Adobe Animate CC. I have successfully moved the canvas element and all of its supporting js files to my own webpage. It is currently working and displaying the animation. I had to insert an
<body onload="init();">
into my body tag. When my HTML page first opens the area where this canvas element is located is not visible. I think it would be optimal if I could run this init function when my page scrolls to that area of the page. Could someone tell me how to accomplish this? Thanks
Define ‘not visible’ a little better for me.
Not visible as in it’s actually HIDDEN, or not visible as in “It’s too far down the page on my screen” (Note that your screen is subjective - different resolutions/orientations will show more/less of your webpage.)