Wednesday, May 2, 2012

jQuery animate percent number?

Ive looked all over but I cant find how to use jQuery's .animate() function to animate a percentage I have.



I have a progress bar with a percent number above it. When the page loads I simply want the number to increase from 0 to a defined number lets say 67%. How do I animate the number so that it displays as 1%, 2%, 3% ...up to 67%?



Also something to note is I would like to use jQuery's .animate() function because I want to define the time it takes to get to 67%.





No comments:

Post a Comment