Skip to main content

EntityAnimation

Classes

AnimationSpec
EntityAnimation

AnimationSpec

Kind: global class
See: {Tween} for more information on transition function

new AnimationSpec(type, parameter, duration, transitionFunction)

ParamTypeDescription
typeAnimationSpec.Type
parameternumber
durationnumberin seconds
transitionFunctionfunction

EntityAnimation

Kind: global class
Properties

NameType
animationSpecsArray.<AnimationSpec>

new EntityAnimation(entity)

ParamType
entitynumber

entityAnimation.promiseEnd() ⇒ Promise.<any>

Kind: instance method of EntityAnimation

entityAnimation.onEnded(callback) ⇒ EntityAnimation

Kind: instance method of EntityAnimation

ParamType
callbackfunction