Hey
I am using this codepen, which uses TweenMax to do the wave animation.
1. I was wondering, the draw function creates a new TweenMax object in each interval. Wouldn't it have some performance issues?
2. I am trying to set the pause and resume functions to work with those waves. But since, the draw function is creating each new object, how can I go about it?
Setting a
var tween = new TweenMax();
results in
uncaught exception: Cannot tween a null target.