I want to use bottom border of input element as a progress bar for visualizing upload progress. The closest thing I got is to use pseudo element ::after. Right now I have a code like this:
.under-upload::after {
  content: '';
  position: relative;
  display: block;
  height: 2px;
  background: red;
  transform: scaleX(0);
}
<input type="file" class="under-upload">
And in axios I use function, that returns value from 0 to 1 and I want to use this value in the transform: scaleX() to show upload progress. How should I do that or there are better alternatives?
