API Documentation for: 0.6.2
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

(
  • t
)
Number static

Defined in backIn:268

Parameters:

Returns:

backInOut

(
  • t
)
Number static

Defined in backInOut:310

Parameters:

Returns:

backOut

(
  • t
)
Number static

Defined in backOut:288

Parameters:

Returns:

bounceIn

(
  • t
)
Number static

Defined in bounceIn:349

Parameters:

Returns:

bounceInOut

(
  • t
)
Number static

Defined in bounceInOut:377

Parameters:

Returns:

bounceOut

(
  • t
)
Number static

Defined in bounceOut:359

Parameters:

Returns:

circIn

(
  • t
)
Number static

Defined in circIn:318

Parameters:

Returns:

circInOut

(
  • t
)
Number static

Defined in circInOut:338

Parameters:

Returns:

circOut

(
  • t
)
Number static

Defined in circOut:328

Parameters:

Returns:

cubicIn

(
  • t
)
Number static

Defined in cubicIn:160

Parameters:

Returns:

cubicInOut

(
  • t
)
Number static

Defined in cubicInOut:174

Parameters:

Returns:

cubicOut

(
  • t
)
Number static

Defined in cubicOut:167

Parameters:

Returns:

elasticIn

(
  • t
)
Number static

Defined in elasticIn:404

Parameters:

Returns:

elasticInOut

(
  • t
)
Number static

Defined in elasticInOut:452

Parameters:

Returns:

elasticOut

(
  • t
)
Number static

Defined in elasticOut:428

Parameters:

Returns:

get

(
  • amount
)
Function static

Defined in get:81

Mimics the simple -100 to 100 easing in Flash Pro.

Parameters:

  • amount Number

    A value from -1 (ease in) to 1 (ease out) indicating the strength and direction of the ease.

Returns:

getBackIn

(
  • amount
)
Function static

Defined in getBackIn:256

Configurable "back in" ease.

Parameters:

  • amount Number

    The strength of the ease.

Returns:

getBackInOut

(
  • amount
)
Function static

Defined in getBackInOut:296

Configurable "back in out" ease.

Parameters:

  • amount Number

    The strength of the ease.

Returns:

getBackOut

(
  • amount
)
Function static

Defined in getBackOut:276

Configurable "back out" ease.

Parameters:

  • amount Number

    The strength of the ease.

Returns:

getElasticIn

(
  • amplitude
  • period
)
Function static

Defined in getElasticIn:388

Configurable elastic ease.

Parameters:

Returns:

getElasticInOut

(
  • amplitude
  • period
)
Function static

Defined in getElasticInOut:436

Configurable elastic ease.

Parameters:

Returns:

getElasticOut

(
  • amplitude
  • period
)
Function static

Defined in getElasticOut:412

Configurable elastic ease.

Parameters:

Returns:

getPowIn

(
  • pow
)
Function static

Defined in getPowIn:98

Configurable exponential ease.

Parameters:

  • pow Number

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

Returns:

getPowInOut

(
  • pow
)
Function static

Defined in getPowInOut:124

Configurable exponential ease.

Parameters:

  • pow Number

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

Returns:

getPowOut

(
  • pow
)
Function static

Defined in getPowOut:111

Configurable exponential ease.

Parameters:

  • pow Number

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

Returns:

linear

(
  • t
)
Number static

Defined in linear:64

Parameters:

Returns:

none

(
  • t
)
Number static

Defined in none:72

Identical to linear.

Parameters:

Returns:

quadIn

(
  • t
)
Number static

Defined in quadIn:138

Parameters:

Returns:

quadInOut

(
  • t
)
Number static

Defined in quadInOut:152

Parameters:

Returns:

quadOut

(
  • t
)
Number static

Defined in quadOut:145

Parameters:

Returns:

quartIn

(
  • t
)
Number static

Defined in quartIn:182

Parameters:

Returns:

quartInOut

(
  • t
)
Number static

Defined in quartInOut:196

Parameters:

Returns:

quartOut

(
  • t
)
Number static

Defined in quartOut:189

Parameters:

Returns:

quintIn

(
  • t
)
Number static

Defined in quintIn:204

Parameters:

Returns:

quintInOut

(
  • t
)
Number static

Defined in quintInOut:218

Parameters:

Returns:

quintOut

(
  • t
)
Number static

Defined in quintOut:211

Parameters:

Returns:

sineIn

(
  • t
)
Number static

Defined in sineIn:226

Parameters:

Returns:

sineInOut

(
  • t
)
Number static

Defined in sineInOut:246

Parameters:

Returns:

sineOut

(
  • t
)
Number static

Defined in sineOut:236

Parameters:

Returns: