开发者

How to combine an effect like scaling w/ fadeOut in jQuery?

I wish to make an object fade out and scale down 80% at the same time.

This is what I tried which is not correct because the animations 开发者_StackOverflow中文版happen in sequence instead of at the same time.

$div.effect("scale", {percent:80, origin:['middle','center']}, 3000);
$div.fadeOut(3000, function()
{
   //Animation done
});

How should it be done?


Try using .animate() function.
Here there are some examples that can fit your needs: http://api.jquery.com/animate/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜