JSFiddle - React, Tailwind, and code Playground

by Scott Kaye

HTML

<span>Hello there!</span>

CSS

html, body {
  height: 100%;
}

body {
  background: #111;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

span {
  padding: 1em;
  font-size: 10em;
  font-family: Segoe UI;
  font-weight: 700;
  color: #fff;
  position: relative;
  background: #111;
  text-shadow: 2px 2px 5px #000;
}

span::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(-45deg, #fff 0, #fff 25px, #f33 25px, #f33 50px);
  background-size: 200%;
  mix-blend-mode: darken;
  animation: anim 2s linear infinite;
}

@keyframes anim {
  to {
    background-position: -70px;
  }
}