Emulates scroll through the intermediate points.
scrollByPath = function(aPath);
//As a result of execution the page is scrolled down 500 points down at a slower pace var path = []; for (var i = 0; i < 50; i++){ var point = {}; point.x = 0; point.y = -10; point.duration = i*2; path.push(point); } scrollByPath(path);