JSFiddle - React, Tailwind, and code Playground
by Kondal Durgam
HTML
<div class="sun">
<div class="dot"></div>
</div>
CSS
.dot{
position:absolute;
top:0;
left:0;
width:50px;
height:50px;
background:green;
border-radius:50%;
}
.sun{
width:200px;
height:200px;
position:absolute;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:linear;
-webkit-animation-name:orbit;
-webkit-animation-duration:5s;
top:50px;
left:50px;
}
@-webkit-keyframes orbit {
from { -webkit-transform:rotate(0deg) }
to { -webkit-transform:rotate(360deg) } }