动画效果

1、模拟地球转动效果

 

 

        $(".au-culture-globe-scroll").css("width",$(".au-culture-globe-scroll").width()*2 )
        var gobelTime = setInterval(function(){
            $(".au-culture-globe-scroll").animate({marginRight: '-1730px'},48000,'linear',function(){
                //$(".au-culture-globe-scroll img").find("img").first().before($(".au-culture-globe-scroll img").find("img").last().clone())
                $(".au-culture-globe-scroll").find("img").last().clone().prependTo(".au-culture-globe-scroll");
                $(".au-culture-globe-scroll").find("img").last().remove();
                $(".au-culture-globe-scroll").css("margin-right","0")
            });
        },100);

 

posted @ 2018-07-13 17:02  心向阳  阅读(177)  评论(0编辑  收藏  举报