JSFiddle - React, Tailwind, and code Playground
HTML
<div class="innercircle">
<div class="outercircle"></div>
</div>
CSS
.innercircle {
height:200px;
width: 200px;
border: 1px solid #ccc;
position:relative;
border-radius: 200px;
-webkit-animation: slide 30s linear infinite;
margin:100px 0 0 100px
}
.outercircle {
height:100px;
width: 100px;
border-radius:100px;
position: absolute;
top: -100px;
left:0;
border: 1px solid black;
}
.innercircle:hover {
-webkit-animation-play-state: paused;
}
@-webkit-keyframes slide {
from{
-webkit-transform: rotate(0deg);
}
to{
-webkit-transform: rotate(360deg);
}
}