body {
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.loader {
  width: fit-content;
  font-size: 40px;
  font-family: system-ui;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  -webkit-text-stroke: 1px #000;
  --l: #0000 45%, #000 0 55%, #0000 0;
  --g: 0/300% 100% no-repeat text;
  background: linear-gradient(-60deg, var(--l)) var(--g),
    linear-gradient(60deg, var(--l)) var(--g);
  animation: fill 4s linear infinite;
}

.loader::before {
  content: "Loading";
}

@keyframes fill {
  0% {
    background-position: 100%, 0;
  }

  50% {
    background-position: 0, 0;
  }

  to {
    background-position: 0, 100%;
  }
}
