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/
精彩评论