Fx.Scroll

Fx.Scroll is a smooth scrolling visual effect for elements with the ‘overflow’ style.

Methods

start

top ↑start

start(Object {x:N, y:N}) -> Fx self

Description

Starts the element scrolling effect. You can specify one direction only if you need.

Example

var fx = new Fx.Scroll('element');

fx.start({x: 100});
fx.start({y: 200});
fx.start({x: 100, y: 200});