jQuery Pause / Resume animate

Check the plugin: Fxqueues

https://github.com/lucianopanaro/jQuery-FxQueues

It supports both pause and resume (without clearing the queue) and adds the idea of Scopes. Scopes are great for chaining animations across multiple objects.

I haven't found a version of Fxqueus for the current version of Jquery, but have used it successfully with older Jquery versions.


Check out the demo here: http://api.jquery.com/clearQueue/

Looks like exactly the sort of thing you're trying to do.


try this one for pause and resume: jQuery Pause / Resume animation plugin

also we $(this).stop() can pause animate but no chance to resume!

other mistake is this one: top:'-=80px'

first try to get current position like this then add position to it:

_top = $(this).offset().top;

$('#h .a').animate({
    top:_top-80
},90,'linear')