Stopping and resuming timer in jQuery

jamie_

New Member
I've got two solutions. The first of them using the method \[code\]animate\[/code\]:http://jsfiddle.net/g9aK8/3/The problem is with a delay, when we pause timer for example on 400px and resume then we have to wait again all delay (the speed of bar is absolutely lower). In the second solution I used \[code\]interval\[/code\]:http://jsfiddle.net/6wNcd/1/It looks better, but when I tried stop this after a few minutes I had to wait something about 30 seconds then stopped. I not sure that using here \[code\]interval\[/code\] with that small value is correct.Have you any ideas how do this smartly?
 
Top