var top10s = $('.top10s .content ul'); top10s.prepend(""); top10s.scrollLeft(380).animate({ scrollLeft: '-=380px' }, 1000, 'easeOutCubic', function() { top10s.find('li:gt(4)').remove(); });