Infinite vertical scroll div element
I have sample to vertical scroll slider [sample] : http://jsfiddle.net/e5dtyLjw/ I want to do this sample like infinite, on the sample when scroll is end, its going to top I dont want it, i want to it like infinite Here is my code: var itemCount = 10, activeScroll = 0, countScroll = 0; setInterval(function() { if(countScroll == (itemCount - 6)) { activeScroll = 0; countScroll = 0; $('#list').animate({scrollTop: 0}); } else { activeScroll += 40; countScroll += 1; $('#list').animate({scrollTop: activeScroll}); } }, 1000); update: I did try something new, I want it just like that but this way.