<div class="box1">
  <p>ease-in</p>
</div>

<div class="box2">
  <p>ease-out</p>
</div>

<div class="box3">
  <p>ease-in-out</p>
</div>
div {
  width: 300px;
  height: 50px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: #e57fe7;
}

.box1 {
  animation: move 3s ease-in infinite;
}

.box2 {
  animation: move 3s ease-out infinite;
}

.box3 {
  animation: move 3s ease-in-out infinite;
}

p {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: white;
}

@keyframes move {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.