Mixin: Tracker

canvallax. Tracker

Tracker Class for linking an object's properties to external input, such as the scroll or pointer.

Properties:
Name Type Default Description
ease number 0

The easing of the tracked values when updated. 0 = none, higher is longer.

scale number 1

Multiplier of the tracked values, how drastically the tracker will affect the values. 2 is twice as fast as the tracked values, 0.5 is half the speed of the tracked values

offset object | number | null null

Offset that should be applied to the tracked values.

invert boolean | string null

Invert the tracked values. Can be a string of 'invertx' or 'inverty' to invert specific values

Source: