.your-button-class {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  z-index: 10;
}

.your-button-class::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80px;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 90%);
  z-index: 20;
  animation: lightEffect 1.5s infinite ease-in-out;
  animation-delay: 2s; /* Увеличенная пауза между пробегами */
}

@keyframes lightEffect {
  0% {
    left: -80px;
  }
  100% {
    left: 100%;
  }
}


