Quantcast
Viewing all articles
Browse latest Browse all 8068

turn of view - animation

Hello

I need to rotate a view (turn a card) to a game, it is possible with the API of titanium, yet I have this code.

var vista = e.source;
 
        var matrix = Ti.UI.create2DMatrix();
    //matrix = matrix.invert();
    matrix = matrix.rotate(180);
        var animation = Ti.UI.createAnimation();
        animation.transform = matrix;
        animation.autoreverse = true;
        animation.duration = 1000;
        animation.delay = 1500;
 
        vista.animate(animation);

Viewing all articles
Browse latest Browse all 8068

Trending Articles