How to run jQuery fadeIn() and slideDown() simultaneously?

前端 未结 7 1558
天涯浪人
天涯浪人 2020-12-13 01:38

I\'ve got a div with display: none; Now I want to show it using both: fadeIn and slideDown simultaneously.

$(this).slideDown({duration: \'slow\', queue: fals         


        
相关标签:
7条回答
  • 2020-12-13 02:34
            $(document).ready(function() {
        $("#test").bind("click", function() {
                setTimeout(function() {
                $('#slidedown').slideDown("slow");
            }, 500);
            $("#content").fadeOut(500);
            $(this).stop().animate({ "opacity": "1" }, "slow");
            });
        });
    

    this is for fade out but i think it's what your after. please have a look at the example too: http://jsfiddle.net/oddacon/M44md/

    0 讨论(0)
提交回复
热议问题