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"})
}
})
~~~