295 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+3 more
AkinGn
says

Thanks for sharing solutions and links guys. amatyr4n, I also would like to thank you, I didn’t know there’s such a pseudo selector for jquery. But your code needs a little modification I guess, because it makes the parent list items (ie li.groups) fade in-out too.

And also, I realized if you’re using multi-level dropdowns, you need to modify the first selector like this, like Kriesi mentioned here:

$(document).ready(function(){
    $("li.group").hover(
         function() { $(this).find('ul:first').fadeIn("slow");
        },
        function() { $(this).find('ul').fadeOut("slow");
    });
});

that way, the second, third or moreth ( :) ) level dropdowns will remain hidden untill you hover over their parents ;)

129 posts
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Elite Author
+8 more
OllieMcCarthy
says

Remember to stop queued animations. I’ll dig up the code if needed.

295 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+3 more
AkinGn
says

Remember to stop queued animations. I’ll dig up the code if needed.

I checked the jquery API and I guess it should be something like this:

$(document).ready(function(){
    $("li.group").hover(
         function() { $(this).find('ul:first').stop(true, true).fadeIn("slow");
        },
        function() { $(this).find('ul').stop(true, true).fadeOut("slow");
    });
});

right?

129 posts
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Elite Author
+8 more
OllieMcCarthy
says


Remember to stop queued animations. I’ll dig up the code if needed.

I checked the jquery API and I guess it should be something like this:

$(document).ready(function(){
    $("li.group").hover(
         function() { $(this).find('ul:first').stop(true, true).fadeIn("slow");
        },
        function() { $(this).find('ul').stop(true, true).fadeOut("slow");
    });
});
right?

Yes that’s basically it. If it starts acting funny try deleting one of the “stop(true, true)” and use a bit of trial and error until it starts behaving correctly.

295 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+3 more
AkinGn
says



Remember to stop queued animations. I’ll dig up the code if needed.

I checked the jquery API and I guess it should be something like this:

$(document).ready(function(){
    $("li.group").hover(
         function() { $(this).find('ul:first').stop(true, true).fadeIn("slow");
        },
        function() { $(this).find('ul').stop(true, true).fadeOut("slow");
    });
});
right?
Yes that’s basically it. If it starts acting funny try deleting one of the “stop(true, true)” and use a bit of trial and error until it starts behaving correctly.

will definitely try that Ollie, thanks :)

by
by
by
by
by
by