API Documentation for: 0.5.0
Show:

Ease Class

Defined in: Ease:40
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:237

backInOut

() static

Defined in backInOut:273

backOut

() static

Defined in backOut:254

bounceIn

() static

Defined in bounceIn:305

bounceInOut

() static

Defined in bounceInOut:329

bounceOut

() static

Defined in bounceOut:313

circIn

() static

Defined in circIn:280

circInOut

() static

Defined in circInOut:296

circOut

() static

Defined in circOut:288

cubicIn

() static

Defined in cubicIn:150

cubicInOut

() static

Defined in cubicInOut:160

cubicOut

() static

Defined in cubicOut:155

elasticIn

() static

Defined in elasticIn:354

elasticInOut

() static

Defined in elasticInOut:396

elasticOut

() static

Defined in elasticOut:375

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

Configurable "back in" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackInOut

(
  • amount
)
static

Defined in getBackInOut:260

Configurable "back in out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getBackOut

(
  • amount
)
static

Defined in getBackOut:243

Configurable "back out" ease.

Parameters:

  • amount Object

    The strength of the ease.

getElasticIn

(
  • amplitude
  • period
)
static

Defined in getElasticIn:339

Configurable elastic ease.

Parameters:

getElasticInOut

(
  • amplitude
  • period
)
static

Defined in getElasticInOut:381

Configurable elastic ease.

Parameters:

getElasticOut

(
  • amplitude
  • period
)
static

Defined in getElasticOut:360

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

Configurable exponential ease.

Parameters:

  • pow Object

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

getPowOut

(
  • pow
)
static

Defined in getPowOut:106

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

quadInOut

() static

Defined in quadInOut:143

quadOut

() static

Defined in quadOut:138

quartIn

() static

Defined in quartIn:167

quartInOut

() static

Defined in quartInOut:177

quartOut

() static

Defined in quartOut:172

quintIn

() static

Defined in quintIn:184

quintInOut

() static

Defined in quintInOut:194

quintOut

() static

Defined in quintOut:189

sineIn

() static

Defined in sineIn:201

sineInOut

() static

Defined in sineInOut:217

sineOut

() static

Defined in sineOut:209