The easing namespace

Not included in any default dist, compile your own if you wish to use. Easing equations mainly used in animation to calculate tween frame values. Each method shares the same parameters and return value as below.

Returns
Number

The tween value for the currentFrame.

Parameters:

Name Type Description
currentFrame Number

The current frame

startValue Number

The start value of the number to be tweened

valueChange Number

The total ammount of change the tweened value will expierience over the length of its animation. For example if you're tween from 100 to 200 the valueChange would be 100.

totalFrames Number

The total number of tween frames.

Methods

easeInCirc()

line 199

easeInCubic()

line 84

easeInExpo()

line 174

easeInOutCirc()

line 215

easeInOutCubic()

line 99

easeInOutExpo()

line 188

easeInOutQuad()

line 74

easeInOutQuart()

line 123

easeInOutQuint()

line 147

easeInOutSine()

line 168

easeInQuad()

line 60

easeInQuart()

line 108

easeInQuint()

line 132

easeInSine()

line 156

easeOutCirc()

line 206

easeOutCubic()

line 91

easeOutExpo()

line 181

easeOutQuad()

line 67

easeOutQuart()

line 115

easeOutQuint()

line 139

easeOutSine()

line 162

linear()

line 54