:root {
  --rcs-roller-color: #fff;
  --rcs-roller-size: 64px;
}

.rcs-roller {
  display: inline-block;
  position: relative;
  width: var(--rcs-roller-size);
  height: var(--rcs-roller-size);
}

.rcs-roller div {
  animation: rcs-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: calc(var(--rcs-roller-size) / 2)
    calc(var(--rcs-roller-size) / 2);
}

.rcs-roller div:after {
  content: ' ';
  display: block;
  position: absolute;
  width: calc(var(--rcs-roller-size) / 11.42857);
  height: calc(var(--rcs-roller-size) / 11.42857);
  border-radius: 50%;
  background: var(--rcs-roller-color);
  margin: calc(var(--rcs-roller-size) / -20) 0 0
    calc(var(--rcs-roller-size) / -20);
}

.rcs-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.rcs-roller div:nth-child(1):after {
  top: calc(var(--rcs-roller-size) / 1.26984);
  left: calc(var(--rcs-roller-size) / 1.26984);
}

.rcs-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.rcs-roller div:nth-child(2):after {
  top: calc(var(--rcs-roller-size) / 1.17647);
  left: calc(var(--rcs-roller-size) / 1.42857);
}

.rcs-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.rcs-roller div:nth-child(3):after {
  top: calc(var(--rcs-roller-size) / 1.12676);
  left: calc(var(--rcs-roller-size) / 1.66666);
}

.rcs-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.rcs-roller div:nth-child(4):after {
  top: calc(var(--rcs-roller-size) / 1.11111);
  left: calc(var(--rcs-roller-size) / 2);
}

.rcs-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.rcs-roller div:nth-child(5):after {
  top: calc(var(--rcs-roller-size) / 1.12676);
  left: calc(var(--rcs-roller-size) / 2.5);
}

.rcs-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.rcs-roller div:nth-child(6):after {
  top: calc(var(--rcs-roller-size) / 1.17647);
  left: calc(var(--rcs-roller-size) / 3.33333);
}

.rcs-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.rcs-roller div:nth-child(7):after {
  top: calc(var(--rcs-roller-size) / 1.26984);
  left: calc(var(--rcs-roller-size) / 4.70588);
}

.rcs-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.rcs-roller div:nth-child(8):after {
  top: calc(var(--rcs-roller-size) / 1.42857);
  left: calc(var(--rcs-roller-size) / 6.66666);
}

@keyframes rcs-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
