DOMCurveEasing

From Virtual World Web Wiki
Jump to: navigation, search

Specifies the easing function to use for simple DOMCurve interpolation between two values in a DOMCurveKeyframe

See also: How to Lerp like a pro

Remarks [edit]

Enum Values

Linear = 0
A simple liner lerp from the first value to the second
EaseOut = 1
A curve which accelerates as it reaches the second value
EaseIn = 2
A curve which decelerates as it reaches the second value
Exponential = 3
A simple exponential curve
Smooth = 4
Essentially EaseOut and EaseIn combined into a nice S-Curve
Smoother = 5
Essentially EaseOut and EaseIn combined into a nice S-Curve, but a little fatter so it's more gradual