To customize the transform-origin
, you can specify a precise 3-axis px
position like this:
<g id="smoke" style="transform-origin: 761px 491px 0px">
Keep in mind that the value of 761px
is in SVG units within the coordinate system of this SVG's viewBox
, not in actual display pixels. The displayed width will vary based on the scale it's viewed at, but there's no need to be concerned about that.
.
With a viewBox
of 0 0 1512 982
for your SVG, the center point is x: 1512/2, y: 982/2.
(To align the origin with the lower section of the rocket for your smoke animation, consider adjusting the origin down by about 120 units to
transform-origin: 761px 610px 0px
)