TweenJS

TweenJS  0.3.0

TweenJS > TweenJS > Ease
Search:
 
Filters

static Class Ease

The Ease class provides a collection of easing functions for use with TweenJS. It does not use the standard 4 param easing signature. Instead it uses a single param which indicates the current linear ratio (0 to 1) of the tween.

Most methods on Ease can be passed directly as easing functions:
Tween.get(target).to({x:100}, 500, Ease.linear);

However, methods beginning with "get" will return an easing function based on parameter values:
Tween.get(target).to({y:200}, 500, Ease.getPowIn(2.2));

Equations derived from work by Robert Penner.

Methods

backIn

static void backIn ( )
Returns: void

backInOut

static void backInOut ( )
Returns: void

backOut

static void backOut ( )
Returns: void

bounceIn

static void bounceIn ( )
Returns: void

bounceInOut

static void bounceInOut ( )
Returns: void

bounceOut

static void bounceOut ( )
Returns: void

circIn

static void circIn ( )
Returns: void

circInOut

static void circInOut ( )
Returns: void

circOut

static void circOut ( )
Returns: void

cubicIn

static void cubicIn ( )
Returns: void

cubicInOut

static void cubicInOut ( )
Returns: void

cubicOut

static void cubicOut ( )
Returns: void

elasticIn

static void elasticIn ( )
Returns: void

elasticInOut

static void elasticInOut ( )
Returns: void

elasticOut

static void elasticOut ( )
Returns: void

get

static void get ( amount )
Mimics the simple -100 to 100 easing in Flash Pro.
Parameters:
amount <object> A value from -1 (ease in) to 1 (ease out) indicating the strength and direction of the ease.
Returns: void

getBackIn

static void getBackIn ( amount )
Configurable "back in" ease.
Parameters:
amount <object> The strength of the ease.
Returns: void

getBackInOut

static void getBackInOut ( amount )
Configurable "back in out" ease.
Parameters:
amount <object> The strength of the ease.
Returns: void

getBackOut

static void getBackOut ( amount )
Configurable "back out" ease.
Parameters:
amount <object> The strength of the ease.
Returns: void

getElasticIn

static void getElasticIn ( amplitude , period )
Configurable elastic ease.
Parameters:
amplitude <object>
period <object>
Returns: void

getElasticInOut

static void getElasticInOut ( amplitude , period )
Configurable elastic ease.
Parameters:
amplitude <object>
period <object>
Returns: void

getElasticOut

static void getElasticOut ( amplitude , period )
Configurable elastic ease.
Parameters:
amplitude <object>
period <object>
Returns: void

getPowIn

static void getPowIn ( pow )
Configurable exponential ease.
Parameters:
pow <object> The exponent to use (ex. 3 would return a cubic ease).
Returns: void

getPowInOut

static void getPowInOut ( pow )
Configurable exponential ease.
Parameters:
pow <object> The exponent to use (ex. 3 would return a cubic ease).
Returns: void

getPowOut

static void getPowOut ( pow )
Configurable exponential ease.
Parameters:
pow <object> The exponent to use (ex. 3 would return a cubic ease).
Returns: void

linear

static void linear ( )
Returns: void

none

static void none ( )
Identical to linear.
Returns: void

quadIn

static void quadIn ( )
Returns: void

quadInOut

static void quadInOut ( )
Returns: void

quadOut

static void quadOut ( )
Returns: void

quartIn

static void quartIn ( )
Returns: void

quartInOut

static void quartInOut ( )
Returns: void

quartOut

static void quartOut ( )
Returns: void

quintIn

static void quintIn ( )
Returns: void

quintInOut

static void quintInOut ( )
Returns: void

quintOut

static void quintOut ( )
Returns: void

sineIn

static void sineIn ( )
Returns: void

sineInOut

static void sineInOut ( )
Returns: void

sineOut

static void sineOut ( )
Returns: void