<div class="element-wrapper">
<div class="target-element" style="transform: rotate(0.982927rad); width: 148px; height: 46px;">Heading</div>
</div>
Before Rotate
After Rotate
As seen in the screenshot. I want to change height and width of "element-wrapper" as per transform angle ( like 2nd screenshot after rotate ).
You can check fiddle here!