<div class="square"/>
.square {
  width: 50px;
  height: 50px;
  
  animation-name: moveRight;
  animation-duration: 2s;
  animation-delay: 1s;
  animation-fill-mode: both;
}

@keyframes moveRight {
  0% {
    transform: translate(0px, 0px);
    background-color: red;
  }
  25% {
    transform: translate(100px, 0px);
    background-color: orange;
  }
  50% {
    transform: translate(100px, 100px);
    background-color: yellow;
  }
  75% {
    transform: translate(0px, 100px);
    background-color: green;
  }
  100% {
    transform: translate(0px, 0px);
    background-color: blue;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.