I created a tutorial on how to do exactly that with CSS3 and the LESS JavaScript library. You can find the blogpost here: https://medium.com/secoya-tech/a917b80c43f9
Here is a jsFiddle of the final result. The percentage is set via the data-progress
attribute. Changes are animated using CSS transitions.