#spinLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 99999999;
  display: none;
}

#spinLoader::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: transparent !important;
  animation: spin 1s linear infinite, changeColor 4s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@keyframes changeColor {
  0%, 100% {
    border-color: #f00;
  }
  20% {
    border-color: #fa0;
  }
  40% {
    border-color: #ff0;
  }
  60% {
    border-color: #080;
  }
  80% {
    border-color: #00f;
  }
}