<div id = 'loader_3'>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</div>
body {
  background-color: #e9f3f5;
  min-height: 100%;
}

#loader_3 {
  position: absolute;
  left: 45%;
  top: 45%;
}

#loader_3 span {
  display: block;
  width: 40px;
  height: 40px;
  background: #1eff00;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position: absolute;
}

#loader_3 span:nth-child(1) {
  -webkit-animation: loader_3_1 2s infinite;
  -moz-animation: loader_3_1 2s infinite;
  -ms-animation: loader_3_1 2s infinite;
  -o-animation: loader_3_1 2s infinite;
  animation: loader_3_1 2s infinite;
  background: #54acd2;
}

#loader_3 span:nth-child(2) {
  top: 29px;
  left: 29px;
  -webkit-animation: loader_3_2 2s infinite;
  -moz-animation: loader_3_2 2s infinite;
  -ms-animation: loader_3_2 2s infinite;
  -o-animation: loader_3_2 2s infinite;
  animation: loader_3_2 2s infinite;
  background: #e14a39;
}

#loader_3 span:nth-child(3) {
  top: 58px;
  -webkit-animation: loader_3_3 2s infinite;
  -moz-animation: loader_3_3 2s infinite;
  -ms-animation: loader_3_3 2s infinite;
  -o-animation: loader_3_3 2s infinite;
  animation: loader_3_3 2s infinite;
  background: #fcc312;
}

#loader_3 span:nth-child(4) {
  top: 29px;
  left: -29px;
  -webkit-animation: loader_3_4 2s infinite;
  -moz-animation: loader_3_4 2s infinite;
  -ms-animation: loader_3_4 2s infinite;
  -o-animation: loader_3_4 2s infinite;
  animation: loader_3_4 2s infinite;
  background: #1bbc9b;
}

@keyframes loader_3_1 {
  30% {
    -webkit-transform: translateY(-100px) rotate(180deg);
    -moz-transform: translateY(-100px) rotate(180deg);
    -ms-transform: translateY(-100px) rotate(180deg);
    -o-transform: translateY(-100px) rotate(180deg);
    transform: translateY(-100px) rotate(180deg);
  }
  70% {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

@keyframes loader_3_2 {
  30% {
    -webkit-transform: translateX(100px) rotate(180deg);
    -moz-transform: translateX(100px) rotate(180deg);
    -ms-transform: translateX(100px) rotate(180deg);
    -o-transform: translateX(100px) rotate(180deg);
    transform: translateX(100px) rotate(180deg);
  }
  70% {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

@keyframes loader_3_3 {
  30% {
    -webkit-transform: translateY(100px) rotate(180deg);
    -moz-transform: translateY(100px) rotate(180deg);
    -ms-transform: translateY(100px) rotate(180deg);
    -o-transform: translateY(100px) rotate(180deg);
    transform: translateY(100px) rotate(180deg);
  }
  70% {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

@keyframes loader_3_4 {
  30% {
    -webkit-transform: translateX(-100px) rotate(180deg);
    -moz-transform: translateX(-100px) rotate(180deg);
    -ms-transform: translateX(-100px) rotate(180deg);
    -o-transform: translateX(-100px) rotate(180deg);
    transform: translateX(-100px) rotate(180deg);
  }
  70% {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.