https://gitee.com/chengbenchao/FrontEffect
要点:最后一张图和第一张图的无缝衔接,将样式写在动画的回调函数中
~~~
var leftValue = $("#list").position().left + offset;
$("#list").animate({left: leftValue + "px"}, 300,function () {
if (leftValue == 0) {
$("#list").css({left: "-2000px"})
}
})
~~~