API Documentation for: 0.4.1
Show:

Ease Class

Defined in: Ease:35
Module: TweenJS

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));

Please see the spark table demo for an overview of the different ease types on TweenJS.com.

Equations derived from work by Robert Penner.

Item Index

Methods

Methods

backIn

() static

Defined in backIn:232

backInOut

() static

Defined in backInOut:268

backOut

() static

Defined in backOut:249

bounceIn

() static

Defined in bounceIn:300

bounceInOut

() static

Defined in bounceInOut:324

bounceOut

() static

Defined in bounceOut:308

circIn

() static

Defined in circIn:275

circInOut

() static

Defined in circInOut:291

circOut

() static

Defined in circOut:283

cubicIn

() static

Defined in cubicIn:145

cubicInOut

() static

Defined in cubicInOut:155

cubicOut

() static

Defined in cubicOut:150

elasticIn

() static

Defined in elasticIn:349

elasticInOut

() static

Defined in elasticInOut:391

elasticOut

() static

Defined in elasticOut:370

get

(
  • amount
)
static

Defined in get:72

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.

getBackIn

(
  • amount
)
static

Defined in getBackIn:221

Configurable "back in" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackInOut

(
  • amount
)
static

Defined in getBackInOut:255

Configurable "back in out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackOut

(
  • amount
)
static

Defined in getBackOut:238

Configurable "back out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getElasticIn

(
  • amplitude
  • period
)
static

Defined in getElasticIn:334

Configurable elastic ease.

Parameters:

getElasticInOut

(
  • amplitude
  • period
)
static

Defined in getElasticInOut:376

Configurable elastic ease.

Parameters:

getElasticOut

(
  • amplitude
  • period
)
static

Defined in getElasticOut:355

Configurable elastic ease.

Parameters:

getPowIn

(
  • pow
)
static

Defined in getPowIn:88

Configurable exponential ease.

Parameters:

  • pow Object

    The exponent to use (ex. 3 would return a cubic ease).

getPowInOut

(
  • pow
)
static

Defined in getPowInOut:114

Configurable exponential ease.

Parameters:

  • pow Object

    The exponent to use (ex. 3 would return a cubic ease).

getPowOut

(
  • pow
)
static

Defined in getPowOut:101

Configurable exponential ease.

Parameters:

  • pow Object

    The exponent to use (ex. 3 would return a cubic ease).

linear

() static

Defined in linear:59

none

() static

Defined in none:65

Identical to linear.

quadIn

() static

Defined in quadIn:128

quadInOut

() static

Defined in quadInOut:138

quadOut

() static

Defined in quadOut:133

quartIn

() static

Defined in quartIn:162

quartInOut

() static

Defined in quartInOut:172

quartOut

() static

Defined in quartOut:167

quintIn

() static

Defined in quintIn:179

quintInOut

() static

Defined in quintInOut:189

quintOut

() static

Defined in quintOut:184

sineIn

() static

Defined in sineIn:196

sineInOut

() static

Defined in sineInOut:212

sineOut

() static

Defined in sineOut:204