#box {
  width: 50px;
  height: 50px;
  position: relative;
  background-color: red;
  animation-name: colorChange;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}

@keyframes colorChange {
  0% {
    background-color: red;
    top: 0px;
    left: 0px;
  }
  25% {
    background-color: orange;
    top: 0px;
    left: 200px;
    transform: scale(1.5, 2);
  }
  50% {
    background-color: green;
    top: 200px;
    left: 200px;
    transform: rotate(50deg);
  }
  75% {
    background-color: blue;
    top: 200px;
    left: 0px;
    transform: skew(25deg, 50deg);
  }
  100% {
    background-color: red;
    top: 0px;
    left: 0px;
    transform: translate(50px);
  }
}