TAG
CSS
Result
Run
License
<div class="box">Rollover me</div>
.box { position: absolute; width: 100px; height: 100px; background-color: red; left: calc((100vw - 100px) / 2); top: 100px; transition: 0.3s; display: flex; justify-content: center; align-items: center; } .box:hover { transform: rotate(asin(0.71)); /* About 45degree */ }
Console
expand_less
License
License
by DevDic
Close