<div class="loader">
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
  <div class="ball"></div>
</div>
body {
  background: linear-gradient(45deg, Violet, Orange);
}
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 110px;
  animation: spin .6s linear infinite reverse;
}

.ball {
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  animation: spin 1s infinite ease-in-out;
}

.ball::after {
  position: absolute;
  content: '';
  background-color: #fff;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  top: 0;
}
.ball:nth-child(2){
  animation-delay: -0.1s;
}
.ball:nth-child(3){
  animation-delay: -0.2s;
}
.ball:nth-child(4){
  animation-delay: -0.3s;
}
.ball:nth-child(5){
  animation-delay: -0.4s;
}
.ball:nth-child(6){
  animation-delay: -0.5s;
}
.ball:nth-child(7){
  animation-delay: -0.6s;
}
.ball:nth-child(8){
  animation-delay: -0.7s;
}
.ball:nth-child(9){
  animation-delay: -0.8s;
}
.ball:nth-child(10){
  animation-delay: -0.9s;
}
@keyframes spin {
  0% {transform: translate(-50%, -50%) rotate(0deg)}
  100% {transform: translate(-50%, -50%) rotate(360deg)}
 }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.