Class: Tween

PIXI.animate.Tween

Tween

new PIXI.animate.Tween (target, startProps, endProps, startFrame, duration, ease)

Name Type Description
target PIXI.animate.MovieClip

The target to play

startProps Object

The starting properties

endProps Object

The ending properties

startFrame int

frame number on which to begin tweening

duration int

Number of frames to tween

ease function optional

Ease function to use

Members

duration int

duration of tween in frames. For a keyframe with no tweening, the duration will be 0.

ease function

easing function to use, if any

endFrame int

the frame that the tween ends on

endProps Object

properties at the end of the tween, as well as any properties that are set instead of tweened

isTweenlessFrame Boolean

If we don't tween.

startFrame int

The frame that the tween starts on

startProps Object

properties at the start of the tween

target Object

target display object

Methods

setPosition (currentFrame)

Set the current frame.

Name Type Description
currentFrame int

setToEnd ()

Set to the end position