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?
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 }), });