小编Man*_*and的帖子

JQuery旋转木马很疯狂

旋转木马在转换时会稍微移动/跳跃,我不确定是什么问题.

$(".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

有任何想法吗?

javascript css jquery carousel

5
推荐指数
1
解决办法
71
查看次数

标签 统计

carousel ×1

css ×1

javascript ×1

jquery ×1