<div class="sh">I'm moved!</div>
body {
  background: #000000;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding:10px;
  font-family: 'Roboto Mono', monospace;
}

div.sh {
  width: 100px;
  height: 100px;
  color: #000000;
  background-color: orange;
  padding: 10px;
  border-radius: 4px;
  position: relative;
  text-align: center;
  animation: short-hand 5s linear 1s infinite alternate-reverse;
}

@keyframes short-hand {
  0% {background-color: orange; left: 0px; top: 0px;}
  25% {background-color: green; color: white; left:200px; top:0px;}
  50% {background-color: red; color: white; left:200px; top:200px;}
  75% {background-color: white; color: black; left:0px; top:200px;}
  100% {background-color: yellow; color: black; left:0px; top:0px;}
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.