Looking to create a circular progress bar (see image below), with loading starting from the left bottom side up to the right bottom side. The empty state should be light-blue (#E8F6FD)
and the progress color strong blue (#1CADEB)
.
https://i.sstatic.net/VZ9Lg.png
I've experimented with a few approaches, but haven't found the ideal solution for this implementation:
- Initially, I tried using a
div
element with styles likeborder-radius: 50%;
and
, here's a jsfiddle. While I achieved the desired shape, I struggled with how to fill the border with progress.border-bottom-color: transparent;
- My second attempt involved using canvas, which worked well except that the loader only appeared after all
JS
was loaded. I wanted to avoid this delay and have the loader display immediately when the page loads, jsfiddle.
Are there any alternative methods to create an arc loader or suggestions to overcome the challenges mentioned above?