286 posts
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Turkey
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
  • Ireland
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 5-6 years
  • Bought between 50 and 99 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
OllieMcCarthy says

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

286 posts
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Turkey
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
  • Ireland
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 5-6 years
  • Bought between 50 and 99 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
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
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Turkey
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