Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

animationStyle when adding a view

Hi there

Does 1.0 support the earlier animations like : animationStyle:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT

in 0.8 these were applied to showView, But from 0.9 there is no showView and views are displayed when added.

cheers
Chris.

— asked March 10th 2010 by Chris Reed
  • animation
  • iphone
  • views
0 Comments

2 Answers

  • If you look at the transitions.js file in Kitchen Sink you'll see the examples for this. You can now just use a transition animation to get the same (and more powerful) effects.

    You can essentially do stuff like this:

    imageView.animate({view:image2,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
    

    Where imageView is the animation from and image2 is the animation to.

    — answered March 10th 2010 by Jeff Haynie
    permalink
    0 Comments
  • Great thanks Jeff, that's excellent.

    — answered March 10th 2010 by Chris Reed
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.