
.lightrope {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  width: 100%;
  top: 0;
  left: 0;
}

.lightrope li {
  position: relative;
  list-style: none;
  display: inline-block;
  width: 12px;
  height: 28px;
  border-radius: 50%;
  margin: 20px;
  background: rgba(0, 247, 165, 1);
  box-shadow: 0px 4px 24px 3px rgba(0, 247, 165, 1);
  animation: flash-1 2s infinite both;
}

.lightrope li:nth-child(2n+1) {
  background: rgba(0, 255, 255, 1);
  box-shadow: 0px 4px 24px 3px rgba(0, 255, 255, 0.5);
  animation: flash-2 0.4s infinite both;
}

.lightrope li:nth-child(4n+2) {
  background: rgba(247, 0, 148, 1);
  box-shadow: 0px 4px 24px 3px rgba(247, 0, 148, 1);
  animation: flash-3 1.1s infinite both;
}

.lightrope li:nth-child(odd) {
  animation-duration: 1.8s;
}

.lightrope li:nth-child(3n+1) {
  animation-duration: 1.4s;
}

.lightrope li::before {
  content: "";
  position: absolute;
  background: #222;
  width: 10px;
  height: 9px;
  border-radius: 3px;
  top: -5px;
  left: 1px;
}

.lightrope li::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 9px;
  width: 52px;
  height: 18px;
  border-bottom: solid #222 2px;
  border-radius: 50%;
}

.lightrope li:last-child::after {
  content: none;
}

.lightrope li:first-child {
  margin-left: -40px;
}

@keyframes flash-1 {
  0%, 100% {
    background: rgba(0, 247, 165, 1);
    box-shadow: 0px 4px 24px 3px rgba(0, 247, 165, 1);
  }
  50% {
    background: rgba(0, 247, 165, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(0, 247, 165, 0.2);
  }
}

@keyframes flash-2 {
  0%, 100% {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0px 4px 24px 3px rgba(0, 255, 255, 1);
  }
  50% {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(0, 255, 255, 0.2);
  }
}

@keyframes flash-3 {
  0%, 100% {
    background: rgba(247, 0, 148, 1);
    box-shadow: 0px 4px 24px 3px rgba(247, 0, 148, 1);
  }
  50% {
    background: rgba(247, 0, 148, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(247, 0, 148, 0.2);
  }
}
