JSFiddle - React, Tailwind, and code Playground

HTML

<img id="sun" src="https://goo.gl/PmbqZa">
        
<div id='earth-orbit'>
    <img id="earth" src="https://goo.gl/41IWnf">
</div>

CSS

html, body {
    
    width: 100%;
    height: 100%;
    
    background-color: black;
}

#sun {
    position: absolute;
   
    top: 50%;
    left: 50%;
   
    height: 200px;
    width: 200px;
    margin-top: -100px; 
    margin-left: -100px;

    border-color:rgb(51,51,51);
    border-radius:50%;
    box-shadow:0 0 128px red;
}

#earth {
   
    position:absolute;
    top:0;
    left:50%;
    height:50px;
    width:50px;
    margin-top: -25px; 
    margin-left: -25px;
    
    border-color:rgb(51,51,51);
    border-radius:50%;
    box-shadow:0 0 128px red;
}

#earth-orbit {
   
    position:absolute;
    top:50%;
    left:50%;
    width:500px;
    height:500px;
    margin-top:-250px;
    margin-left:-250px;
    border-width:2px;
    
    -webkit-animation: spin-right 10s linear infinite;
     -moz-animation: spin-right 10s linear infinite;
      -ms-animation: spin-right 10s linear infinite;
       -o-animation: spin-right 10s linear infinite;
          animation: spin-right 10s linear infinite;
}

@-webkit-keyframes spin-right {
  100% {
    -webkit-transform: rotate(360deg);
       -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
         -o-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin-right {
  100% {
    -webkit-transform: rotate(360deg);
       -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
         -o-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}