Personal wave how to make progress bar in javascript equal to image
There are a number of libraries that do this. I recommend you use them not to reinvent the wheel.
Anyway, there are hundreds of these plugins / libraries for you to use.
If you really wanted to create your own using javascript pure or jquery will do some work without need, but I can help you.
You can create your own based on one that already exists.
For example link
For a pure JavaScript implementation without using any library, here's a simple implementation link use it as a foundation and evolve to a final solution that is what you need.