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

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

#loader_5 span {
  position: absolute;
  display: block;
  height: 20px;
  width: 20px;
  background: #1eff00;
}

#loader_5 span:nth-child(1) {
  background: #54acd2;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
  -webkit-animation: loader_5_1 3s infinite ease-in-out;
  -moz-animation: loader_5_1 3s infinite ease-in-out;
  -ms-animation: loader_5_1 3s infinite ease-in-out;
  -o-animation: loader_5_1 3s infinite ease-in-out;
  animation: loader_5_1 3s infinite ease-in-out;
}

#loader_5 span:nth-child(2) {
  background: #e14a39;
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
  -webkit-animation: loader_5_2 3s infinite ease-in-out;
  -moz-animation: loader_5_2 3s infinite ease-in-out;
  -ms-animation: loader_5_2 3s infinite ease-in-out;
  -o-animation: loader_5_2 3s infinite ease-in-out;
  animation: loader_5_2 3s infinite ease-in-out;
}

#loader_5 span:nth-child(3) {
  background: #fcc312;
  -webkit-transform: translateX(40px) translateY(40px);
  -moz-transform: translateX(40px) translateY(40px);
  -ms-transform: translateX(40px) translateY(40px);
  -o-transform: translateX(40px) translateY(40px);
  transform: translateX(40px) translateY(40px);
  -webkit-animation: loader_5_3 3s infinite ease-in-out;
  -moz-animation: loader_5_3 3s infinite ease-in-out;
  -ms-animation: loader_5_3 3s infinite ease-in-out;
  -o-animation: loader_5_3 3s infinite ease-in-out;
  animation: loader_5_3 3s infinite ease-in-out;
}

#loader_5 span:nth-child(4) {
  background: #1bbc9b;
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-animation: loader_5_4 3s infinite ease-in-out;
  -moz-animation: loader_5_4 3s infinite ease-in-out;
  -ms-animation: loader_5_4 3s infinite ease-in-out;
  -o-animation: loader_5_4 3s infinite ease-in-out;
  animation: loader_5_4 3s infinite ease-in-out;
}

@keyframes loader_5_1 {
  25% {
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
}

50% {
  -webkit-transform: translateX(40px) translateY(40px);
  -moz-transform: translateX(40px) translateY(40px);
  -ms-transform: translateX(40px) translateY(40px);
  -o-transform: translateX(40px) translateY(40px);
  transform: translateX(40px) translateY(40px);
}

75% {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
}

100% {
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}
}

@keyframes loader_5_2 {
 25% {
  -webkit-transform: translateX(40px) translateY(40px);
  -moz-transform: translateX(40px) translateY(40px);
  -ms-transform: translateX(40px) translateY(40px);
  -o-transform: translateX(40px) translateY(40px);
  transform: translateX(40px) translateY(40px);
}

50% {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
}

75% {
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}

100% {
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
}
}

@keyframes loader_5_3 {
 25% {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
}

50% {
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}

75% {
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
}

100% {
  -webkit-transform: translateX(40px) translateY(40px);
  -moz-transform: translateX(40px) translateY(40px);
  -ms-transform: translateX(40px) translateY(40px);
  -o-transform: translateX(40px) translateY(40px);
  transform: translateX(40px) translateY(40px);
}
}

@keyframes loader_5_4 {
  25% {
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}

50% {
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
}

75% {
  -webkit-transform: translateX(40px) translateY(40px);
  -moz-transform: translateX(40px) translateY(40px);
  -ms-transform: translateX(40px) translateY(40px);
  -o-transform: translateX(40px) translateY(40px);
  transform: translateX(40px) translateY(40px);
}

100% {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
}
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.