div{ 200px; height: 200px; background-color: pink; margin: 100px auto; transition:all 0.6s; transform-origin: right bottom;}div:hover{ transform: rotate(360deg);}