旋转木马在转换时会稍微移动/跳跃,我不确定是什么问题.
$(".timer").css("display");
$(".timer:gt(5)").css("display", "none");
function move_first() {
//console.debug("animate");
$(".timer").eq(0).stop().animate({
opacity: 0.00,
width: "toggle"
}, 500, function() {
$(this).insertAfter($(".timer").eq(-1));
$(this).css('opacity', '1');
$(".timer").eq(5).animate({
opacity: 1.00,
width: "toggle"
}, 500, function() {
$(".timer").css("display");
$(".timer:gt(5)").css("display", "none");
});
});
setTimeout(move_first, 3000);
}
move_first();
Run Code Online (Sandbox Code Playgroud)
这是jsfiddle的链接:Jumpy Carousel
有任何想法吗?