.box {
  width: 10rem;
  height: 10rem;
  background-color: red;
  position: relative;
  animation: move 2s forwards alternate infinite;
}

@keyframes move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(30rem);
  }
}

.circle-loading {
  width: 5rem;
  height: 5rem;
  background-color: violet;
  margin: 5rem auto;
  border-radius: 50%;
  position: relative;
}

.circle-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: inherit;
  animation: fade 1s forwards infinite linear;
}

@keyframes fade {
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.circle {
  margin: 5rem;
  text-align: center;
  animation: myspin 1s infinite;
}

.circle-item {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid pink;
  display: inline-block;
}

@keyframes myspin {
  50% {
    transform: rotate(190deg);
  }
  75% {
    transform: rotate(175deg);
  }
  100% {
    transform: rotate(180deg);
  }
}
