Implementing a flipcard?
I'm trying to build a flipcard animation:
Flipping from first to the second one works:
users_view.animate({view:profile_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
but when I try to do it in reverse
profile_view.animate({view:users_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT});
it crashes.
What do I do wrong ? Thanks
2 Answers
- 
				
					Try applying the animation to a parent view/window… container.animate({view:profile_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT}); container.animate({view:users_view,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});The containercan be another view or the current window.
- 
				
					The above answer is the solution.