<div></div>
<div></div>
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: #2c3e50;
}

div {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 30%;
  top: 0px;
  transform: translate(0vw, 0);
  background: radial-gradient(at right top, #f39c12, #d35400);
  border-radius: 50%;
  animation-name: jump;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
}

div:nth-child(2) {
  animation-delay: .2s;
  left: 60%;
}

@keyframes jump {
  0% {
    transform: translateY(0);
    animation-timing-function: ease-in;
  }

  30% {
    transform: translateY(10vh);
    animation-timing-function: ease-in;
  }

  60% {
    transform: translateY(40vh);
    animation-timing-function: ease-in;
  }

  80% {
    transform: translateY(60vh);
    animation-timing-function: ease-in;
  }

  95% {
    transform: translateY(75vh);
    animation-timing-function: ease-in;
  }

  15%,
  45%,
  70%,
  85%,
  100% {
    transform: translateY(80vh);
    animation-timing-function: ease-out;
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.