Содержание

scrollByPath

Emulates scroll through the intermediate points.

Syntax

scrollByPath = function(aPath);

Parameters

Notes

Examples

  1. //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);