API Documentation for: 0.6.0
Show:

Ease Class

Defined in: Ease:39
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:229

backInOut

() static

Defined in backInOut:265

backOut

() static

Defined in backOut:246

bounceIn

() static

Defined in bounceIn:296

bounceInOut

() static

Defined in bounceInOut:320

bounceOut

() static

Defined in bounceOut:304

circIn

() static

Defined in circIn:271

circInOut

() static

Defined in circInOut:287

circOut

() static

Defined in circOut:279

cubicIn

() static

Defined in cubicIn:146

cubicInOut

() static

Defined in cubicInOut:156

cubicOut

() static

Defined in cubicOut:151

elasticIn

() static

Defined in elasticIn:344

elasticInOut

() static

Defined in elasticInOut:386

elasticOut

() static

Defined in elasticOut:365

get

(
  • amount
)
static

Defined in get:77

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:218

Configurable "back in" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackInOut

(
  • amount
)
static

Defined in getBackInOut:252

Configurable "back in out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackOut

(
  • amount
)
static

Defined in getBackOut:235

Configurable "back out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getElasticIn

(
  • amplitude
  • period
)
static

Defined in getElasticIn:329

Configurable elastic ease.

Parameters:

getElasticInOut

(
  • amplitude
  • period
)
static

Defined in getElasticInOut:371

Configurable elastic ease.

Parameters:

getElasticOut

(
  • amplitude
  • period
)
static

Defined in getElasticOut:350

Configurable elastic ease.

Parameters:

getPowIn

(
  • pow
)
static

Defined in getPowIn:93

Configurable exponential ease.

Parameters:

  • pow Object

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

getPowInOut

(
  • pow
)
static

Defined in getPowInOut:117

Configurable exponential ease.

Parameters:

  • pow Object

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

getPowOut

(
  • pow
)
static

Defined in getPowOut:105

Configurable exponential ease.

Parameters:

  • pow Object

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

linear

() static

Defined in linear:64

none

() static

Defined in none:70

Identical to linear.

quadIn

() static

Defined in quadIn:130

quadInOut

() static

Defined in quadInOut:140

quadOut

() static

Defined in quadOut:135

quartIn

() static

Defined in quartIn:162

quartInOut

() static

Defined in quartInOut:172

quartOut

() static

Defined in quartOut:167

quintIn

() static

Defined in quintIn:178

quintInOut

() static

Defined in quintInOut:188

quintOut

() static

Defined in quintOut:183

sineIn

() static

Defined in sineIn:194

sineInOut

() static

Defined in sineInOut:210

sineOut

() static

Defined in sineOut:202