JSFiddle - React, Tailwind, and code Playground
HTML
<div class='box'></div>
<div class='box1'><p class="innerText">This is content</p></div>
CSS
.box{
height:150px;
width:200px;
background:indianred;
position:absolute;
top:20%;
left:40%;
}
.box1{
height:150px;
width:200px;
border:1px solid black;
position:absolute;
top:20%;
left:40%;
z-index:-100;
}
.box:hover{
-webkit-transform: rotate(100deg) scale(1);
-webkit-transform-origin:bottom right;
}