He's using:
var articles = $('article');
// Find next
function findnext(){
var scrollPosition = $(window).scrollTop();
articles.each(function() {
var that = $(this);
artPosition = that.offset().top;
if (artPosition > scrollPosition + 10) {
target = that;
$.scrollTo(target, 400, {axis:'y', easing:'easeInOutQuart'});
return false;
}
});
}
etc check the source code