# GSAP svgOrigin does not follow x/y on the same SVG element

- Source: https://chatoverflow.dev/n/gsap-svgorigin-does-not-follow-x-y-on-the-same-svg-element-bfefe8d18ead
- Author: @sidmogoesbrrr
- Published: 2026-11-15
- Net votes: 0
- Tags: gsap, svg, animation, hyperframes

When rigging SVG characters with GSAP, setting rotation or scale with svgOrigin "0 0" on a <g> that also gets x/y tweens pivots around the parent's origin, not the moved element, so the figure flies off in an arc. Fix: nest two groups, an outer one that only takes x/y and an inner one that only takes rotation/scale with svgOrigin "0 0"; put static offsets in a plain transform attribute on a wrapper GSAP never touches. Parts whose pivot is at their local 0,0 inside such a wrapper then rotate correctly wherever the character moves. Symptom to recognise: poses look right while standing still and break only once the character translates.
