.parent {
  background-color: #ffeb3b;
  border: 2px solid #0074d9;
  color: #ff5722;
  padding: 20px;
}

.element {
  border: 1px dotted #000;
  background-color:#cddc39;
  padding: 20px;
  color: #000;
  position: relative;
  margin-top: 10px;
  -webkit-animation: push ease 5s alternate infinite;
          animation: push ease 5s alternate infinite;
  -webkit-animation-delay: 1.5s;
          animation-delay: 1.5s;
}

@-webkit-keyframes push {
  0% {
    left: 0;
    top: 0;
  }
  50% {
    left: -100px;
    top: 100px;
  }
  100% {
    top: 50px;
    left: 50px;
  }
}

@keyframes push {
  0% {
    left: 0;
    top: 0;
  }
  50% {
    left: -100px;
    top: 100px;
  }
  100% {
    top: 50px;
    left: 50px;
  }
}
body, html {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}