Multiple Canavas/animations

edited March 2016 in JavaScript Mode

I have two separate animations on a webpage (see setup below). I want to only have one running (and visible) at a time. all animations works as directed, it is just too much to have them running at the same time. Any thoughts on the best approach?

...<script type="text/processing" data-processing-target="T1"> script Some Animation Code </script> ... <script type="text/processing" data-processing-target="T2"> script Some More Animation Code </script> ... <canvas id="T1"></canvas> <canvas id="T2"></canvas>

Sign In or Register to comment.