On Mon, Mar 1, 2010 at 11:35 AM, Paul Collins <pauldcoll...@gmail.com> wrote:
> My problem is that if someone hovers over the .content multiple times,
> the JQuery remembers and keeps popping the menu up and down

>From http://api.jquery.com/stop/:

We can create a nice fade effect without the common problem of
multiple queued animations by adding .stop(true, true) to the chain:

$('#hoverme-stop-2').hover(function() {
  $(this).find('img').stop(true, true).fadeOut();
}, function() {
  $(this).find('img').stop(true, true).fadeIn();

I don't like how this jerks the in animation to its end then starts
the out animation - it would be nice if it would freeze the in
animation and start the out animation from there but things get messed
up with jumpToEnd (the second param) set to false.


Reply via email to