我的方法是复制第一帧放到最左边,比如有8张图,复制第一张放到位置为4的后面,我觉得这样比较好看,
var n = this.posterItems.length;
if(n%2 == 0){
this.posterItems.eq(n/2).after(this.posterItems.eq(0).clone());
this.posterItems = this.posterItemMain.children();
};
var n = this.posterItems.length;
if(n%2 == 0){
this.posterItems.eq(n/2).after(this.posterItems.eq(0).clone());
this.posterItems = this.posterItemMain.children();
};
2017-05-01
slice_left.each(function (i) {
level--;
rw = rw * _self.settings.scale;
rh = rh * _self.settings.scale;
var j = i;
$(this).css({
// 其他值一样
left: first_left - (++i)*gap
});
});
level--;
rw = rw * _self.settings.scale;
rh = rh * _self.settings.scale;
var j = i;
$(this).css({
// 其他值一样
left: first_left - (++i)*gap
});
});
2017-04-20