HTML5+CSS on Canvas 3D WebGL (TM) Library

startScroll Library Method

Short Description: Set scroll start of transition

Signature: t.startScroll (scrollPosition)
Group: Control
Class: transition Class

Makes the transition play while the page is scrolled down. The transition will start playing when the page is scrolled down to or below the given scrollPosition.

scrollPosition gives the number of pixels the page is scrolled down. 0 means the y position of the HTML element associated with the transition.

Usually this is used in combination with distance. absStartScroll, startScroll, and distance can not be used in combination with startTime, absStartTime, or duration. Also if absStartScroll and startScroll are used within a single transition only the last one becomes effective.

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.distance - Set scroll distance of a transition
Previous Page: transition.absStartScroll - Set absolute scroll start of transition