Hi, I am trying to build a progress bar using jQuery and javascript.
It is basically a bar
<div id="progressbar"><div id="progress"></div>
<div id="number">0%</div>
when you click on the next button (which isnt here) it changes the width of the progress div and using css3 it animates it nicely, but my problem here is the number. I have 5 screens so they are all 20% each and I would like to animate the numbers so while the bar is getting wider the number flicks through all numbers from 0% to 20% in the same time as the bar animation (0.5s)
I know with JQuery you could just use the innerHTML command and change it from 0% to 20% but I wanted to animate it.
Any idea how to do that?