kitchensink window animation

You must Login before you can answer or comment on any questions.

Hi,

When a new window is opened in KS, there's a cool slide + fade effect. How can I get the same effect in my apps? I tried searching their files but all I can see there is {animated:true} when opening a window - but this only gives the slide in effect without the fade effect.

Any idea how to do it?

Thanks, Idan

— asked 10 months ago by Idan Jan
0 Comments

2 Answers

Are you viewing this on iOS or Android? iOS has a nice NavigationViewController that takes care of this for you. With Android, you will need to make custom animations and pass them to the window when opening, such as:

var a = Ti.UI.createAnimation();
a.duration = 500;
a.width = 320;
 
var win = Ti.UI.createWindow({backgroundColor:'#000',width:0,left:0,top:0});
win.open(a);

Thanks, I'll try the NavigationViewController thing

Your Answer

Think you can help? Login to answer this question!