@import url("https://fonts.googleapis.com/css2?family=Orbitron&display=swap");



.range {
  position: relative;
  background-color:purple;
  width: 600px;
  left:50px;
  border-radius:20px;
  height: 20px;
  text-decoration:solid;
  font-weight:620;
}
.range:before {
  --width: calc(var(--p) * 1%);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius:50px;
  background-color: palevioletred;
  z-index: 0;
  -webkit-animation: load 0.5s forwards linear, glitch 0s infinite linear;
          animation: load 0.5s forwards linear, glitch 0s infinite linear;
}
.range:after {
    animation: gradient 5s ease infinite;
  counter-reset: progress var(--p);
  content: counter(progress) "%";
  color: black;
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%) skewX(-30deg);
  z-index: 1;
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.range__label {
  transform: skew(-0deg) translateY(-100%);
  line-height: 1.5;
}

@-webkit-keyframes load {
  to {
    width: var(--width);
  }
}

@keyframes load {
  to {
    width: var(--width);
  }
}
