<div class="mega-wrapper"> 
  <div class="wrapper">
    <div class="big-cube"></div>
    <div class="small-cube loader-zoom"></div>
    <div class="small-cube loader-zoom"></div>
    <div class="small-cube loader-zoom"></div>
    <div class="small-cube loader-zoom"></div>
  </div>
</div>
.mega-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.big-cube {
  border: 8px solid black;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  margin-top: 35%;
  z-index: 0;
}

.small-cube {
  width: 70px;
  height: 70px;
  border: 8px solid black;
  background-color: white;
  z-index: 10;
  margin-top: -12.1rem;
  margin-left: 7rem;
}

@keyframes clock {
  20% {
    transform: scale(1);
  }
  40% {
    transform: scale(0);
  }
  60% {
    transform: scale(1);
  }
  80% {
    transform: scale (0);
  }
  100% {
    transform: scale(1);
  }
}

.loader-zoom {
  animation: loader-zoom 2s infinite ease-in;
}

@keyframes loader-zoom {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

.loader-zoom:nth-child(2) {
  animation-delay: 500ms;
  margin-top: -3rem;
  margin-left: 0rem;
  background-color: white;
}

.loader-zoom:nth-child(3) {
  animation-delay: 1500ms;
  margin-top: -12.1rem;
  margin-left: 0rem;
  background-color: white;
}

.loader-zoom:nth-child(4) {
  animation-delay: 1000ms;
  margin-top: 1.35rem;
  margin-left: 7rem;
  background-color: #f15922;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.