Hi - I've recently started using gsap (very pleased so far), and I wanted to know if there is a simple way of simultaneously tweening multiple properties of an object of an object within an array, all without using a foreach loop?
This is the code before adding the tween:
var spheres = [sphere1, sphere2, ..., spherex];
$.each(spheres, function (i, sphere) {
sphere.scale.x = value;
sphere.scale.y = value;
});
And this is the working code I've got so far. But I'd like to be able to do the same thing without the loop, if possible:
$.each(spheres, function (i, sphere) {
TweenLite.to(sphere.scale, 1, {x: value, y: value, ease:Quad.easeInOut});
});