How to fade out div slowly, update content, and then fade in div slowly, using jQuery?

前端 未结 6 1572
梦如初夏
梦如初夏 2020-12-10 02:52

I have a div I want to fade out, update its content, and then fade back in. So far I have tried:

$(\'#myDivID\').fadeOut(\'slow\', function() {
         


        
6条回答
  •  难免孤独
    2020-12-10 03:39

    Try this.

    http://jsfiddle.net/X3cnT/

    $('#myDivID').fadeOut('slow', function() {
            $('#myDivID').html("all this text");
            $('#myDivID').fadeIn('slow');
    });
    

提交回复
热议问题