jQuery Scale and Fade at the same time

后端 未结 6 1582
星月不相逢
星月不相逢 2021-02-03 13:32

So I can make a div to scale nicely from it\'s center pivot: http://jsfiddle.net/uTDay/

However, the transition starts to change when I add in content inside the div: ht

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 14:32

    This one works better :)

    $(".btn a").click(function () {
       $('.box').hide("scale", {}, 500).animate({'opacity' : 0});
       $('.box img').hide("scale", {}, 500).animate({'opacity' : 0});
    });
    

提交回复
热议问题