fadeOut() and slideUp() at the same time?

后端 未结 6 997
难免孤独
难免孤独 2020-12-02 13:05

I have found jQuery: FadeOut then SlideUp and it\'s good, but it\'s not the one.

How can I fadeOut() and slideUp() at the same time? I trie

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 13:38

    It's possible to do this with the slideUp and fadeOut methods themselves like so:

    $('#mydiv').slideUp(300, function(){
        console.log('Done!');
    }).fadeOut({
        duration: 300,
        queue: false
    });
    

提交回复
热议问题