291 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 ;)

129 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.

291 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?

129 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.

291 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 :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by