Titanium Community Questions & Answer Archive

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

Animation of Default.png in KitchenSink

Hello,

I have installed KitchenSink on both my iPhone and Android phones. Works pretty well. I am wondering where the control of the animation/transition (flip) of the Default.png was being done. I cannot find it anywhere in the code.

Thanks in advance

Olivier

— asked March 25th 2010 by Olivier Brand
  • animation
  • default.png
  • transition
0 Comments

3 Answers

  • It's around line 97 of the app.js

    tabGroup.open({
        transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
    });
    

    Titanium.UI.iPhone.AnimationStyle

    — answered March 25th 2010 by Kurt Gailey
    permalink
    0 Comments
  • How can we add a fadeout/fadein transition? Do I have to change the Titanium source code?

    — answered March 25th 2010 by Olivier Brand
    permalink
    0 Comments
  • I did this by adding a imageview of the same default.png then fading it out.

        var startupAnimation = Titanium.UI.createAnimation({
            curve:Ti.UI.ANIMATION_CURVE_EASE_IN_OUT,
            opacity:0,
            duration:1000
        });
        startupWindow.animate(startupAnimation);
    
    — answered March 27th 2010 by Kurt Gailey
    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.