开发者

jQuery: do after complete animate doesn't work

$comment.animate({width: 0}, {queue:false, duration:450 }, function() { 
//$comment.css({ 'display': 'block' })
$comment.hide();
 });

it doesn't show animation. i guess that开发者_JAVA百科 i have put a function is wrong place.


Per the docs, if you specify options, include the callback in the options rather than separately:

$comment.animate({width: 0}, {
    queue:    false,
    duration: 450,
    complete: function() { 
        //$comment.css({ 'display': 'block' })
        $comment.hide();
    }
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜