JSFiddle - React, Tailwind, and code Playground

HTML

<body class="c-animated-background">
</body>

CSS

@keyframes placeHolderShimmer {
  0% {
    background-position: -30vw 0
  }
  100% {
    background-position: 70vw 0
  }
}

.c-animated-background {
  position:relative;
  animation: 1.5s infinite linear;
  animation-name: placeHolderShimmer;
  background: fff;
  background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  height: 100%;
  width: 100%;
  position: relative;
  -webkit-backface-visibility: hidden
}