JSFiddle - React, Tailwind, and code Playground

by Jay

HTML

<div class="sun">
 <div class="dot"></div>
</div>

CSS

.dot{
    position:absolute;
    top:0;
    left:0;
    width:50px;
    height:50px;
    background:red;
    border-radius:50%;
}
.sun{
    width:200px;
    height:200px;
    position:absolute;
    animation:orbit 1s infinite linear alternate;
    top:50px;
    left:50px;
}

@-webkit-keyframes orbit { 
from { -webkit-transform:rotate(0deg);rotate(0deg) } 
to { -webkit-transform:rotate(360deg) } 
}