Class: Timeline

PIXI.animate.Timeline

Timeline

new PIXI.animate.Timeline (Target)

The Timeline class represents a

Name Type Description
Target PIXI.DisplayObject

The target for this string of tweens.

Extends

  • Array

Members

The target DisplayObject.

Methods

addKeyframe (properties, startFrame)

Add a single keyframe that doesn't tween.

Name Type Description
properties Object

The properties to set.

startFrame int

The starting frame index.

addTween (tween)

Adds one or more tweens (or timelines) to this timeline. The tweens will be paused (to remove them from the normal ticking system) and managed by this timeline. Adding a tween to multiple timelines will result in unexpected behaviour.

Name Type Description
tween

The tween(s) to add. Accepts multiple arguments.

Returns:
Tween The first tween that was passed in.

extendLastFrame (endFrame)

Extend the last frame of the tween.

Name Type Description
endFrame int

The ending frame index.

getPropFromShorthand (prop)

Get the value for a property

Name Type Description
prop string