I am using CSS transform matrix in order to rotate a div. After rotation is applied, I want to position the div using css 'left' and 'top'.
The problem is that the css positioning is ignoring the rotation, and treats the rectangle like it is not rotated. For example, if I rotate the rectangle 90 deg and then set it to left 0px and top 0px, it wont show up in the upper-left corner of the container. It will be the same result as if I position the original rectangle in 0,0 and only then rotate it (it will look like it is in 10px,-5px or so).
All the answers online talk only about getting the position of rotated rectangle but not setting.
Thanks.