<section>
  <div class="dot">0%</div>
  <div class="dot">20%</div>
  <div class="dot">40%</div>
  <div class="dot">60%</div>
  <div class="dot">80%</div>
  <div class="dot">100%</div>
</section>
.dot {
  offset-path: path('M 0 100 Q 100 0 200 100 Q 300 200 400 100');
  position: absolute;
  offset-rotate: 0deg;
  animation: move 3s ease-in-out infinite alternate;
}

@keyframes move{
  100%{
    offset-path: path('M 0 100 Q 100 200 200 100 Q 300 0 400 100')
  }
}

.dot:nth-of-type(2) {
  offset-distance: 20%;
}

.dot:nth-of-type(3) {
  offset-distance: 40%;
}

.dot:nth-of-type(4) {
  offset-distance: 60%;
}

.dot:nth-of-type(5) {
  offset-distance: 80%;
}

.dot:nth-of-type(6) {
  offset-distance: 100%;
}

.dot{
  background: lightblue;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid slateblue;
  border-radius: 5px;
}

section{
  position: relative;
  width: 400px;
  height: 200px;
  margin: auto;
}
svg {
  position: absolute;
  stroke-width: 2px;
}

body{
  background: Azure;
}

*{
  box-sizing: border-box;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.