I have this:
var $ul = $(this).children("ul");
$ul.animate({opacity: 0}, 1000);
$ul.delay(1000).css("display", "none")
It's for my dropdown menu, and I want it to fade off before it disappears using the display: none;
CSS property. However, it appears that the .delay()
cannot be used on the .css()
; it doesn't work, the $ul
just disappears right away.
I can't use $ul.animate({opacity: 0, display: "none"}, 1000);
either.