<div class="loading">
  <span></span>
  <span></span>
  <span></span>
</div>
.loading {
  margin: 2rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: violet;
  animation-name: bounce;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

span:nth-child(1) {
  animation-delay: 0.3s;
}
span:nth-child(2) {
  animation-delay: 0.5s;
}
span:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes bounce {
  40% {
    transform: translateY(-25px);
  }
  100% {
    transform: translateY(0);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.