animation. Animation

new Animation(clock, duration, endValues, options) → {Animation}

Simplified alias for KeyframeAnimation
Name Type Argument Description
clock EventEmitter An object that emits a 'tick' event and has a `toFrameNumber` method.
duration Number | String The duration, either as frames (number), seconds (e.g. '1s'), milliseconds (e.g. '100ms') or as a percentage of the clock's total frames (e.g. '23%')
endValues Object <optional>
The properties/values to animate
options Object <optional>
Additional options
Name Type Argument Default Description
options.easing String | Function <optional>
Easing function. Either the name of a predefined or a custom function
options.isTimelineBound Boolean <optional>
Boolean indicating whether this animation should be bound to the timeline, and respond to isPlaying state, or play regardless of timeline's progress.
options.subjects Array | Object <optional>
The subject(s) (DisplayObjects) of the animation
options.strategy string | Object <optional>
'attr' The strategy to use to get and set properties on the subject.
options.delay Number | String <optional>
0 Delay before animation begins, in frames or seconds
options.repeat Number <optional>
0 The number of repetitions.
  • An Animation instance
  • Type

Mixes In