Open utterances-bot opened 8 months ago
Great work, I love it!
I took it even one step further and removed the inner div for the number value. Now you need to update the percentage in only in the CSS variable and nowhere else. Also, I added an optional parameter for the size which automatically scales the font size accordingly.
Building Dynamic Progress Bars using only CSS — Amit Merchant — A blog on PHP, JavaScript, and more
Here’s a full disclaimer upfront: This isn’t something I’ve come up with. Jeffery Way from Laracasts has come up with this technique in one of the videos and I’m just sharing it here for my reference.
https://www.amitmerchant.com/dynamic-progress-bars-using-css/