您必须使用queue
属性同时播放动画。
工作小提琴:Here
基本代码:
$(function() {
$(".thumbnail").animate({ opacity: 1 }, { duration: 1200, queue: false });
$(".thumbnail").animate({ "margin-top": "0px" }, { duration: 1200, queue: false });
});
有关jQuery
中动画功能的更多信息,请阅读this。
我希望我能帮助你一点:)