Based on an original rect1 (x1, y1, w1, h1) and a known scaled rect2 (x2, y2, w2, h2) what is the formula to find out what transform-origin was used? I need a reusable formula because rect2 can be positioned anywhere.
Put another way, I know the bounds of a little rectangle and want it to transition to a bigger rectangle by applying the correct transform-origin coordinates (in px or %).