Extends Animation

Animation.Sequential

A sequential animation is used to run several animations in a sequence. The next animation does not start untill the previous one has finished.

Sequential animations can contain any combination of other animation types. When used with parallel animations and tween animations, most common UI animation effects can be achieved.

Animation.Sequential {
    running: true
    loops: .Max
    Animation.Tween {
        target: sequentialBall1.x
        to: 100
        duration: 1000
    }
    Animation.Tween {
        target: sequentialBall2.x
        to: 100
        duration: 1000
    }
    Animation.Tween {
        target: sequentialBall1.x
        to: 0
        duration: 1000
    }
    Animation.Tween {
        target: sequentialBall2.x
        to: 0
        duration: 1000
    }
}

In the above example, the sequential animation contains four tween animations which animate one after another.