new TrackScroll(options)
Tracker Class for linking an object's x
and y
to the scroll position.
Parameters:
Name | Type | Description |
---|---|---|
options |
object | Object containing properties to be applied to the new instance. Reference the properties below. |
- Mixes In:
- Source:
Example
var scene = canvallax.Scene(), tracker = canvallax.TrackScroll(); scene.addTo(tracker);