<link href="https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&display=swap" rel="stylesheet">
<div class="wrap">
<p>We're all</br>mad here</p>
<div class="overlay"></div>
</div>
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0b0b0b;
}

p {
  display: block;
  position: relative;
  font-family: 'Mountains of Christmas', cursive;
  text-transform: uppercase;
  font-size: 4em;
  line-height: 1.2em;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #0b0b0b, #937122, #0b0b0b);
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 80%;
  animation: animate 5s linear forwards, show 5s linear 6s forwards, flicker 5s linear 11s infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.wrap {
  width: auto;
  height: auto;
  position: relative;
}

/*.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top:0;
  left: 0;
  z-index: 5;
  background: radial-gradient(circle, rgba(147,113,34,0) 40%, rgba(11,11,11,.8) 95%);
}
*/


@keyframes animate {
  0% {
    background-position: -500%;
  }
  100% {
    background-position: 500%;
  }
}


@keyframes show {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(147,113,34,.9);
  }
  64% {
    background-color: rgba(147,113,34,.9);
  }
  65% {
    background-color: rgba(147,113,34,0.2);
  }
  66% {
    background-color: rgba(147,113,34,0.4);
  }
  67% {
    background-color: rgba(147,113,34,0.2);
  }
  68% {
    background-color: rgba(147,113,34,0.4);
  }
  80% {
    background-color: rgba(147,113,34,0.7);
  }
  81% {
    background-color: rgba(147,113,34,0.4);
  }
  100% {
    background-color: rgba(147,113,34,.9);
  }
  
}

@keyframes flicker {
  0% {
    background-color: rgba(147,113,34,.9);
  }
  64% {
    background-color: rgba(147,113,34,.9);
  }
  65% {
    background-color: rgba(147,113,34,0.2);
  }
  66% {
    background-color: rgba(147,113,34,0.4);
  }
  67% {
    background-color: rgba(147,113,34,0.2);
  }
  68% {
    background-color: rgba(147,113,34,0.4);
  }
  80% {
    background-color: rgba(147,113,34,0.7);
  }
  81% {
    background-color: rgba(147,113,34,0.4);
  }
  100% {
    background-color: rgba(147,113,34,.9);
  }
  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.