@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");

.glitch {
  position: relative;
  margin: 0 auto;
  color: var(--white);
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  font-family: "Pixelify Sans";
  letter-spacing: 0.01em;
  transform: scale3d(1, 1, 1);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--violet);
  color: var(--white);
  clip: rect(0, 900px, 0, 0);
}
.glitch::before {
  left: 7px;
  text-shadow: 1px 5 var(--green);
  animation: glitch-effect 6s infinite linear alternate-reverse;
}
.glitch::after {
  left: 3px;
  text-shadow: -1px 0 var(--red);
  animation: glitch-effect 4s infinite linear alternate-reverse;
}

@keyframes glitch-effect {
  0% {
    clip: rect(99px, 9999px, 83px, 0);
  }
  5% {
    clip: rect(62px, 9999px, 96px, 0);
  }
  10% {
    clip: rect(78px, 9999px, 12px, 0);
  }
  15% {
    clip: rect(67px, 9999px, 65px, 0);
  }
  20% {
    clip: rect(4px, 9999px, 15px, 0);
  }
  25% {
    clip: rect(54px, 9999px, 63px, 0);
  }
  30% {
    clip: rect(56px, 9999px, 52px, 0);
  }
  35% {
    clip: rect(3px, 9999px, 36px, 0);
  }
  40% {
    clip: rect(49px, 9999px, 59px, 0);
  }
  45% {
    clip: rect(87px, 9999px, 86px, 0);
  }
  50% {
    clip: rect(70px, 9999px, 4px, 0);
  }
  55% {
    clip: rect(31px, 9999px, 99px, 0);
  }
  60% {
    clip: rect(79px, 9999px, 13px, 0);
  }
  65% {
    clip: rect(34px, 9999px, 91px, 0);
  }
  70% {
    clip: rect(77px, 9999px, 16px, 0);
  }
  75% {
    clip: rect(12px, 9999px, 90px, 0);
  }
  80% {
    clip: rect(8px, 9999px, 65px, 0);
  }
  85% {
    clip: rect(24px, 9999px, 52px, 0);
  }
  90% {
    clip: rect(54px, 9999px, 57px, 0);
  }
  95% {
    clip: rect(39px, 9999px, 24px, 0);
  }
  100% {
    clip: rect(94px, 9999px, 52px, 0);
  }
}

/*# sourceMappingURL=glitch.css.map */
