Count from 0 to 100 in 7 seconds while doing an jQuery.animate() for a progress bar
<p>I've a simple progress bar that has to go from 0 to 100% width in 7 seconds. I've no problem handling operations, it just need to be 7 seconds long.</p>

<p>The code is actually so simple:</p>

<pre><code>$('.progress-bar').animate({width:'100%'}, 7000);
</code></pre>

<p>The width of the progress is 0% so just I need to animate it to 100%. My problem is that I also need to count from 0 to 100 to show the percentage in the same way I do for the progress (within 7 seconds).</p>

<p>How I can do it?</p>

<p>Thank you!</p>
