I'm currently searching for a good solution to stop jQuery's interal function animate() when a new event occurs. A very basic example:
1. You have a moving div container which has a duration of 10 seconds, it moves from left: 0px; to left: 500px.
2. Somewhere in your page there's a "stop" button, if you press it, the animation will end before duration has ended.
I need it for a special case where I start a animation using a click, and if I click again, the new animation should begin right away and the old one cleared.
Any ideas?
--
Paul Bakaus
Web Developer
------------------------
Hildastr. 35
79102 Freiburg
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/