Sets the transform-origin css property of the passed element to the center of its BBOX (svg) or transform rect (html) as a pixel coordinate.
This is intened mainly for elements that will not be moved except with the transform css property or svg attribute (relative to its parent).
If the passed element is moved by another method (margin, top, flex, etc...) you must call this again to update the transform-origin.
On newer browsers this function can often be replaced with transform-box: fill; transform-origin: 50% 50% properties on svg elements
Sets the transform-origin css property of the passed element to the center of its BBOX (svg) or transform rect (html) as a pixel coordinate. This is intened mainly for elements that will not be moved except with the transform css property or svg attribute (relative to its parent). If the passed element is moved by another method (margin, top, flex, etc...) you must call this again to update the transform-origin. On newer browsers this function can often be replaced with
transform-box: fill; transform-origin: 50% 50%
properties on svg elements