Hello. I'd like to be able to turn requestAnimationFrame on and off for a number of elements that use it. Some of those elements aren't Tweens.
Rather than specifically turning it on or off, I'd rather have control over the function that runs as a result of the requestAnimationFrame inside of TweenLite via a method like tick().
Psudocode
var tween = TweenLite.to(element, 1, {width:"50%"});
var running = true;
tween.override();
function renderTween(){
if(!running){ return false };
requestAnimFrame(renderTween);
tween.tick();
}
renderTween();
Anyone have any ideas?
Thanks,
Aaron