Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Animation when another animation finishes

New to Cascades and trying to figure out how to play one animation when the first finishes.


Specicically I'm trying to make a shaking motion, so I assume I'll have to animate from left to right and back again consecutively.

co-founder of Diaree | BB Dev for PictureThis
Posts: 115
Registered: ‎10-22-2012
My Device: Developer
My Carrier: Mobifone

Re: Animation when another animation finishes

   animations: [
        TranslateTransition {
            target: targetId
            id: toLeft
            toX: 500
            duration: 500
            onEnded: {toRight.play()}
        TranslateTransition {
            target: targetId
            id: toRight
            toX: 0
            duration: 500
            onEnded: {toLeft.play()}


Like my answer if it's helpful. Mark as answer if it help you solve the problem.