#container {
  width: 200px;
  height: 50px;
  position: absolute;
  top: calc(50% + 50px);
  left: calc(50% + 50px);
  opacity: 0;
  -webkit-animation: fadeIn 1s 1;
  -o-animation: fadeIn 1s 1;
  animation: fadeIn 1s 1;
  animation-fill-mode: forwards;
}

.wrap {
  -webkit-animation: translateX 1000ms infinite ease-in-out alternate;
  -o-animation: translateX 1000ms infinite ease-in-out alternate;
  animation: translateX 1000ms infinite ease-in-out alternate;
  position: absolute;
}

.ball {
  width: 50px;
  height: 50px;
  box-shadow: 0 -5px 0 rgba(0, 0, 0, 0.15) inset;
  background-color: #397BF9;
  border-radius: 50%;
  -webkit-animation: translateY 500ms infinite ease-in-out alternate;
  -o-animation: translateY 500ms infinite ease-in-out alternate;
  animation: translateY 500ms infinite ease-in-out alternate;
  border: 2px solid black;
}

.wrap:after {
  content: '';
  width: 50px;
  height: 7.5px;
  background: #eee;
  position: absolute;
  bottom: 0;
  top: 70px;
  border-radius: 50%;
  -webkit-animation: scale 500ms infinite ease-in-out alternate;
  -o-animation: scale 500ms infinite ease-in-out alternate;
  animation: scale 500ms infinite ease-in-out alternate;
}

#wrap2, #ball2, #wrap2:after {
  animation-delay: -400ms;
}

#wrap3, #ball3, #wrap3:after {
  animation-delay: -800ms;
}

#wrap4, #ball4, #wrap4:after {
  animation-delay: -1200ms;
}

#wrap5, #ball5, #wrap5:after {
  animation-delay: -1600ms;
}

#ball2 {
  background-color: #F4B400;
}

#ball3 {
  background-color: #EEEEEE;
}

#ball4 {
  background-color: #00A656;
}

#ball5 {
  background-color: #E3746B;
}
@-webkit-keyframes translateX {
  100% {
    -webkit-transform: translateX(-150px);
    -ms-transform: translateX(-150px);
    -o-transform: translateX(-150px);
    transform: translateX(-150px);
  }
}
@keyframes translateX {
  100% {
    transform: translateX(-150px);
  }
}
@-webkit-keyframes translateY {
  100% {
    -webkit-transform: translateY(-187.5px);
    -ms-transform: translateY(-187.5px);
    -o-transform: translateY(-187.5px);
    transform: translateY(-187.5px);
  }
}
@keyframes translateY {
  100% {
    transform: translateY(-187.5px);
  }
}
@-webkit-keyframes scale {
  100% {
    -webkit-transform: scale(1.15);
    -ms-transform: scale(1.15);
    -o-transform: scale(1.15);
    transform: scale(1.15);
  }
}
@keyframes scale {
  100% {
    transform: scale(1.15);
  }
}
@-webkit-keyframes fadeIn {
  100% {
    opacity: 1;
  }
}
@keyframes fadeIn {
  100% {
    opacity: 1;
  }
}