In Animate CC on an HTML canvas for a web banner I want to animate snowflakes on a landscape. At the moment I'm using "Code Snippets" --> "Html5 Canvas" --> " Animation" --> "Animate Horizontally" and animated several snowflake-Movie-Clips falling from top to bottom.
How can I loop snow infinitely so that it falls endlessly from top to bottom?
I found this article:
But I didn't quite understand how to use the code correctly in a html5-banner without buttons.
create a snowflake and assign it a class/linkage id = "Snow". you can then use:
var snowA = ;
var tl = this;
var snowNum = 100;
var animateSnowI = setInterval(animateSnowF,100);
snow = new lib.Snow;
snow.x = stage.canvas.width*Math.random();
snow.y = -stage.canvas.height*Math.random();
snow.rot = 2*Math.round(Math.random())-1;
snow.sp = 5*Math.round(Math.random())+5;
Hi, has something changed in Adobe Animate? This code does not currently appear to work.
Does anyone have a working version? Also, what would be the best way to stop the animation after 30 seconds?