Search the Community
Showing results for tags 'position transformorigin'.
Hi I am just not sure if x and y properties are supposed to be relative to transformOrigin. Let's say I have a simple div, width 200px, height 200px. If I am right, by default, transformOrigin is set to "50% 50% 0". So if I rotate my div, the rotation is relative to its center. Fine. But if I set x and y properties of my div (with TweenMax.set()), the position is always relative to its top left corner, and not to its transformOrigin. 1) is it the expected behaviour ? 2) if yes, is there a way to change the origin point for x and y properties ? Without having to set margin-left : -100px and margin-top : -100px Thanx.