Hello, I've started to learn gsap in order to animate SVGs. I'm stuck trying to translate an element relative to itself. I've uploaded to Gifs as examples, "test_hype.gif" shows what I want (using tumult hype, I'm a graphic designer) and "test_gsap.gif" shows what I've managed to get using gsap so far. As it seems "translationOrigin: "50% 50%" affects rotation but not translation, where always takes the surrounding SVG coords as reference.
The code I'm using is:
var circle = $("#circle"),
clase1 = $(".clase-1"),
clase2 = $(".clase-2"),
clase3 = $(".clase-3");
TweenLite.from(clase1, 2, {y:0});
TweenLite.from(clase2, 2, {y:0});
TweenLite.from(clase3, 2, {y:0, transformOrigin: "50% 50%"});
TweenLite.to(circle, 1, {rotation: 180, transformOrigin: "50% 50%"});
As you can see "clase3" starts to move from the same y coord than the others.
Maybe I should dig deeper in the docs but I haven´t found so far why this is not working.
Thanks in advance, Alejandro Godoy.