animation.reverse()
Create a new animation with all reverse values.
译:创建一个反向动画,即所有属性值变化和既定的相反。
layerA = new Layer
animationA = new Animation
layer: layerA
properties:
x: 100
animationB = animationA.reverse()
# Alternate between the two animations
animationA.on(Events.AnimationEnd, animationB.start)
animationB.on(Events.AnimationEnd, animationA.start)
animationA.start()