Click the "Try it" button to set the origin of the rotation to 0 for both the x-axis and the y-axis:
Note: The grey DIV element indicates where the DIV2 element would be without the transformation.
Note: Internet Explorer 9 supports an alternative, the msTransformOrigin property. Newer versions of IE and Edge support the transformOrigin property (do not need the ms prefix)