JSFiddle - React, Tailwind, and code Playground
HTML
<div id="path"></div>
CSS
#path {
animation-name: turn;
transform-origin: 50px 50px;
animation: turn 2s infinite;
width: 100px;
height: 100px;
background-color: red;
}
@keyframes turn {
100% {
transform: rotate(1080deg);
}
}