var top10s = $('.top10s .content ul'); top10s.append(""); top10s.scrollLeft(0).animate({ scrollLeft: '+=380px' }, 1000, 'easeOutCubic', function() { top10s.find('li:lt(5)').remove(); });