var olist = $('.list');
setInterval(function(){
var nleft = parseInt($('.list')[0].style.left) - 600;
olist.animate({left:nleft}, 400, function(){
if(nleft <= -2400 ){
nleft = '-600px';
}
else {
nleft = nleft + 'px';
}
$('.list')[0].style.left = nleft;
})
},2000)
setInterval(function(){
var nleft = parseInt($('.list')[0].style.left) - 600;
olist.animate({left:nleft}, 400, function(){
if(nleft <= -2400 ){
nleft = '-600px';
}
else {
nleft = nleft + 'px';
}
$('.list')[0].style.left = nleft;
})
},2000)
2017-02-20