I am trying to rotate an SVG with a text element whose "y" attribute is expressed in % units.
During the animation the text does not keep the proper position. The elements slides down relatively to other elements in the SVG .
If I change the "y" attribute to an absolute value - it rotates as expected
Even if I perform only the .to tween - I can see the text slide down a little ...
Is it something I should expect ?
My tween :
tl = new TimelineMax({paused: "true"});
tl
.to(svg, 1, {delay: 1, attr:{viewBox:"-120 -96 392 96"}} )
.staggerTo(".symbol_copy", 1, {
autoAlpha: true,
svgOrigin: "8px 56px",
cycle: {
rotation: [-100,-75,-50,-25],
rotationZ: 0.001,
delay: function(index) { return 0.7-(0.15 * index); }
}
},
0
);
maxi_tl.play();