【发布时间】:2012-01-21 16:26:53
【问题描述】:
我正在尝试将两个 .animate() 放在我的主要 animate() 回调中。不工作?有什么建议么?先感谢您。干杯。马克。
$('#wrapper li').click(function () {
//Here is set my variables
$('#wrapper li').slice(startLi, endLi).animate({
"left": '-=' + leftDistance
}, "fast", function () {
$('#wrapper li').slice(indexLi + 1, endLi).stop().animate({
"left": "+=225px"
}, "slow", function () {
$('#wrapper li').slice(indexLi + 1, endLi).stop().animate({
"left": "-=225px"
}, "slow");
}
});
}); // Close of $('#wrapper li').click
【问题讨论】:
标签: jquery callback jquery-animate