Progress bar

Width comes from a custom property you set in HTML or JavaScript.

CSS · Progress barIntermediate
.progress {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress > span {
  display: block;
  width: calc(var(--value, 0) * 1%);
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.4s ease;
}
/* <div class="progress" style="--value:65"><span></span></div> */
progressbarvariabletransition