286 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+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 ;)

124 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Located in Ireland
  • Made it to the Authors' Hall of Fame
+5 more
OllieMcCarthy says

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

286 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+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?

124 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Located in Ireland
  • Made it to the Authors' Hall of Fame
+5 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.

286 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+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