JSFiddle - React, Tailwind, and code Playground

HTML

<div class="donuts">
 <div class="donut-container">
   <div class="donut"></div>
 </div>
 <div class="donut-container">
    <div class="small-donut"></div>
 </div>
  <div class="donut-container">
    <div class="circle"></div>
 </div>
</div>

CSS

@keyframes donut-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes donut-spin-reverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes fade {
  0% {opacity: 1;}
  50% {opacity: 0;}
  100% {opacity: 1;}
}

.donuts {
  margin: 0 auto;
  position: relative;
  width: 200px;
  height: 200px;
  margin-top: 100px;
}
.donut-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.donut {
  position: absolute;
  display: inline-block;
  border: 20px solid rgba(0, 0, 0, 0.1);
  border-left-color: #7983ff; 
  border-right-color: #7983ff;
  border-radius: 50%; 
  width: 100px;
  height: 100px;
  animation: donut-spin 1.2s linear infinite;
}
.small-donut {
  position: absolute;
  display: inline-block;
  border: 20px solid rgba(0, 0, 0, 0.1);
  border-left-color: #7983ff; 
  border-right-color: #7983ff;
  border-radius: 50%; 
  width: 30px;
  height: 30px;
  animation: donut-spin-reverse 1.2s linear infinite;
}

.circle {
  width: 50px;
  height: 50px;
  background: #7983ff;
  border-radius: 50%;
  animation: fade 1.2s linear infinite;
}