Say for instance I have a animation executing on hover, naturally it’s easy to stop on our callback function – I need to stop the animation after 1 second, would I do this with ClearInterval? My Actual function can be seen here http://jsfiddle.net/7hujh/
$(elem).hover(function() {
// animate
}, function () {
// stop animating
});
Yes, just clear the interval after one second:
FIDDLE