[jQuery] Re: Hover Repeats Over and Over...

2008-12-05 Thread Brian Cherne
Hi Ricardo, you're correct. You can now stop any animation. At the time hoverIntent was written a year and a half ago $(foo).stop() wasn't available. I've been meaning to update the hoverIntent plugin/page. It's in my personal animation queue. :) Brian. On Wed, Dec 3, 2008 at 1:03 PM, ricardobeat <

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread ricardobeat
On Dec 3, 4:23 pm, brian <[EMAIL PROTECTED]> wrote: > Also, because jQuery > animations cannot be stopped once they've started it's best not to > start them prematurely. > -- snip -- That's not the case; you can stop any animation, jumping to the end of it or not. cheers, - ricardo

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread SmpleJohn
This worked. Still has a bit of bugs, but doesn't loop infinitely. Thanks for you help. My final code: $("#header").hover(       function(over){           $("#header #menu").stop(true,true).slideDown();       },       function(out){            $("#header #menu").stop(true,true).slideUp();  

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread SmpleJohn
My bad, copied and pasted the hoverIntent when I was testing it out, but it's actually set up as hover and still giving me issues. On Dec 3, 12:23 pm, brian <[EMAIL PROTECTED]> wrote: > You are not using hover(), you're using the hoverIntent plugin. From > its website: > > -- snip -- > hoverInten

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread brian
You are not using hover(), you're using the hoverIntent plugin. From its website: -- snip -- hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It works like (and was derived from) jQuery's built-in hover. However, instead of im

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread ricardobeat
Try adding stop(true,true) before either of the slide calls. That jumps to the end of the animation and clears the queue. But hoverIntent should be preventing this from happening, to a certain extent. - ricardo On Dec 3, 12:40 pm, SmpleJohn <[EMAIL PROTECTED]> wrote: > It's amazing I can't find