<div class="preloader">
  <div class="preloader__content">
    <div class="preloader__stick"></div>
    <div class="preloader__stick"></div>
    <div class="preloader__stick"></div>
    <div class="preloader__stick"></div>
    <div class="preloader__stick"></div>
  </div>
</div>
body {
  margin: 0;
}
.preloader {
  --size: 200px;
  --color: #7057a0;
  width: 100vw;
  height: 100vh;
  position: fixed;
  background: #34314c;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__content {
  position: relative;
  height: var(--size);
  width: var(--size);
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader__stick {
  width:5%;
  margin-right: 3%;
  height:25%;
  background: var(--color);
  animation-duration: 0.3s;
  animation-timing-function: linear;
  animation-name: stick;
}

.preloader__stick:nth-child(1) {
  animation-delay: 0.3s;
}
.preloader__stick:nth-child(2) {
  animation-delay: 0.6s;
}
.preloader__stick:nth-child(3) {
  animation-delay: 0.9s;
}
.preloader__stick:nth-child(4) {
  animation-delay: 1.2s;
}
.preloader__stick:nth-child(5) {
  animation-delay: 1.5s;
}

@keyframes stick {
  50% { height: 50%; }
  100% { height: 25%; }
}

.preloader__stick:last-child {
  margin: 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.