Moving element in an SVG to same position as another element in GSAP Posted September 25, 2022 I have this setup in my HTML file: <svg> <g id="thing1"> ... </g> <g id="thing2"> ... </g> </svg> And I'm running a timeline like this: timeline.to("#thing1", { duration: 0.5, ease: "none", x: ??, y: ?? }); How do I make #thing1 animate to the position of #thing2?
Moving element in an SVG to same position as another element
in GSAP
Posted
I have this setup in my HTML file:
And I'm running a timeline like this:
How do I make
#thing1
animate to the position of#thing2
?