JSFiddle - React, Tailwind, and code Playground
HTML
<div>
</div>
CSS
div {
background: red;
border: 5px solid green;
width: 200px;
height: 200px;
border-radius: 50%;
transition: all 5s ease-in-out;
}
div:hover {
transform:rotate(180deg);
border: 5px dotted blue;
}