Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by axelstudios

  1. Same problem; the issue is in the TweenLite vars parameter. JavaScript doesn't allow "scale.x" or "scale.y" as object keys. Seems like it should be: TweenLite.to(spheres, 1, {scale: {x: value, y: value}, ease:Quad.easeInOut}); but it doesn't seem to look in nested objects for parameters to modify.
  2. Unfortunately, that results in a syntax error: "Uncaught SyntaxError: Unexpected token ."
  3. 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}); });