HTML

<ul class="css-loader-example">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>

CSS

.css-loader-example {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.css-loader-example li {
  width: 44px;
  height: 45px;
  background: #F28F00;
  list-style: none;
  display: inline-block;
  margin: 0 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 10px #000000;
  animation: loading 4s both infinite;
}

.css-loader-example li:nth-child(2){
  background: #EA4301;
  animation-delay: 0.2s;
}

.css-loader-example li:nth-child(3){
  animation-delay: 0.4s;
}

.css-loader-example li:nth-child(4){
  background: #669930;
  animation-delay: 0.6s;
}

.css-loader-example li:nth-child(5){
  background: #BD0E53;
  animation-delay: 0.8s;
}



@keyframes loading {
  0% { transform: translateX(150px); opacity: 0; }
  25%,50% { transform: translateX(0); opacity: 1; }
  75%,100% { transform: translateX(-150px); opacity: 0; }
}