Skip to content
Advertisement

how can i curve to progress bar in css

I would like to create a progress bar like this curve progress . But i don’t know how to make it. I created this one straight progress bar and here is my css code

JavaScript
JavaScript

how can i curve to a progress bar ? is it possible or do i have to try an another tag?

Advertisement

Answer

My suggestion would be to use SVG and split the elements on the metro map into different <symbol> elements. To construct the path/progress <use> can be used and transformed into the right position.

The progress itself is made by a CSS selector for both the color of the lines and the dots. For the example you can use the range element to control the progress.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement