JSFiddle - React, Tailwind, and code Playground

HTML

<div class="progressbar"></div>

CSS

@keyframes progress{
  from{
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0%);
  }
}

.progressbar {
  position: relative;
  margin: 10px;
  height: 20px;
  border: 1px solid #999;
  border-radius: 3px;
  overflow: hidden;
}

.progressbar:after{
  content: '';
  position: absolute;
  background: #2ca12e;
  height: 100%;
  width: 100%;
  animation: progress 60s linear forwards;
}