Methods
easeInBack A easeInBack tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInBounce A easeInBounce tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInCirc A easeInCirc tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInCubic A easeInCubic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInElastic A easeInElastic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInExpo A easeInExpo tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutBack A easeInOutBack tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutBounce A easeInOutBounce tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutCirc A easeInOutCirc tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutCubic A easeInOutCubic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutElastic A easeInOutElastic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutExpo A easeInOutExpo tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutQuad A easeInOutQuad tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutQuart A easeInOutQuart tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutQuint A easeInOutQuint tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInOutSine A easeInOutSine tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInQuad A easeInQuad tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInQuart A easeInQuart tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInQuint A easeInQuint tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeInSine A easeInSine tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutBack A easeOutBack tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutBounce A easeOutBounce tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutCirc A easeOutCirc tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutCubic A easeOutCubic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutElastic A easeOutElastic tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutExpo A easeOutExpo tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutQuad A easeOutQuad tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutQuart A easeOutQuart tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutQuint A easeOutQuint tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
easeOutSine A easeOutSine tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
linear A linear tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number
linear A linear tween according to Robert Penner's easing functions(elapsedTime, initialValue, finalValue, totalTime) → {number}
Parameters:
Name | Type | Description |
---|---|---|
elapsedTime |
number | The current time from 0 |
initialValue |
number | The starting value of the tween |
finalValue |
number | The terminal value of the tween |
totalTime |
number | The amount of time the total tween will take |
Returns:
currentValue - The current value for this moment in time
- Type
- number