new AnimationManager(_ticker)
animation manager, optional a ticker param
Name | Type | Description |
---|---|---|
_ticker |
Ticker |
Example
var manager = new PIXI.AnimationManager(app.ticker);
var ani = manager.parseAnimation({
keyframes: data,
infinite: true,
});
Members
-
pausedBoolean
-
mark the manager was pause or not
-
timeScaleNumber
-
time scale, just like speed scalar
Methods
-
add(child){AnimationGroup}
-
add a animationGroup child to array
Name Type Description child
AnimationGroup AnimationGroup instance
Returns:
Type Description AnimationGroup child -
parseAnimation(options){AnimationGroup}
-
parser a bodymovin data, and post some config for this animation group
Name Type Description options
object bodymovin data
Name Type Default Description keyframes
Object bodymovin data, which export from AE
repeats
Number 0 optional need repeat somt times?
infinite
Boolean false optional play this animation round and round forever
alternate
Boolean false optional alternate direction every round
wait
Number 0 optional need wait how much time to start
delay
Number 0 optional need delay how much time to begin, effect every round
prefix
String '' optional assets url prefix, like link path
timeScale
Number 1 optional animation speed
autoStart
Number true optional auto start animation after assets loaded
Returns:
Type Description AnimationGroup Example
var manager = new PIXI.AnimationManager(app.ticker); var ani = manager.parseAnimation({ keyframes: data, infinite: true, });
-
pause(){this}
-
pause all animation groups
Returns:
Type Description this -
resume(){this}
-
pause all animation groups
Returns:
Type Description this -
setSpeed(speed)
-
set animation speed, time scale
Name Type Description speed
number