HTML5 Canvas 2D Library

distance Library Method

Short Description: Set scroll distance of a transition

Signature: t.distance (d)
Group: Control
Class: transition Class

Sets the scroll distance of the transition. The transition plays while the page is scrolled down from a scroll start position for the given distance d. d is an integer specified in pixels.

distance must be used after absStartScroll or startScroll.

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.showBefore - Display object before startting time
Previous Page: transition.startScroll - Set scroll start of transition