jQuery slideUp after delay

前端 未结 1 1508
不思量自难忘°
不思量自难忘° 2021-01-24 06:55

I have a navigation menu child ul animating when it\'s parent li is hovered with the mouse. It also slides up when the mouse exits. However, I am trying to get it to delay by 1

相关标签:
1条回答
  • 2021-01-24 07:45

    Wrong order, get the elements before you delay the animation, otherwise the delay is applied to this, not it's children.

    $(this).children("ul").delay(1000).slideUp();
    
    0 讨论(0)
提交回复
热议问题