.ctn-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 999999;
}
.loading {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #efefef;
  z-index: 9999;
}
.loader {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
.loader div {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: var(--red);
  border-radius: 50%;
}
.loader div:nth-child(1) {
  animation: FadeColor 3s linear infinite 0s;
}
.loader div:nth-child(2) {
  animation: FadeColor 3s linear infinite 0.15s;
}
.loader div:nth-child(3) {
  animation: FadeColor 3s linear infinite 0.3s;
}
.loader div:nth-child(4) {
  animation: FadeColor 3s linear infinite 0.45s;
}

@keyframes FadeColor {
  0% {
    opacity: 0;
    transform: scale(0.3);
    background: transparent;
  }
  25% {
    opacity: 1;
    transform: scale(1.8);
    background: var(--blue);
  }
  50% {
    opacity: 0;
    transform: scale(0.3);
    background: transparent;
  }
  75% {
    opacity: 1;
    transform: scale(1.8);
    background: var(--red);
  }
  100% {
    opacity: 0;
  }
}  