Titanium Community Questions & Answer Archive

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

How to fade or dissolve from one window to another?

I have an opening intro video playing and at the end, I'd like to have it fade or dissolve into the next window so I can eliminate the little blink that occurs when changing views.

I know I have access to the following transitions:

Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT
Titanium.UI.iPhone.AnimationStyle.CURL_UP
Titanium.UI.iPhone.AnimationStyle.CURL_DOWN

Currently I have:

intro.addEventListener('complete',function()
{
  intro.release(); // release the video player
  win2.open(); // open the next window
  win.animate({ 
    view:win2,
    transition:Ti.UI.iPhone.AnimationStyle.CURL_DOWN
  }); // animate transition from win to win2

});

and it sort of works as expected, but I still see a 'blink' as it if it is not a clean transition.

How would I make this a fade or dissolve type transition from the window with the video player to the next window for the app?

— asked September 6th 2010 by John Pataki
  • window
0 Comments

1 Answer

  • maybe this will work better?

    
    intro.addEventListener('complete',function() {
      intro.release(); // release the video player
      win2.open({ transition:Titanium.UI.iPhone.AnimationStyle.CURL_DOWN }),
     });
    
    — answered September 6th 2010 by Dan Tamas
    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.