Animate view states in State Manager

微笑、不失礼 提交于 2019-12-21 05:38:15

问题


I have a State Manager implementation with 2 view states. I want to defer the normal removal of a state and add a custom animation when the view is being destroyed and State Manager is transitioning to another state.

Here is a jsFiddle: http://jsfiddle.net/Xkg6X/

For some reason, hide function of each view state is not being triggered where I can create a custom animation for removal.

Reference: Deferring removal of a view so it can be animated


回答1:


You don't ever call the hide function, so it's not going to get executed.

You can use the async transition feature of the state manager to achieve what you're trying to do. Here's a jsFiddle: http://jsfiddle.net/Xkg6X/1/



来源:https://stackoverflow.com/questions/10854438/animate-view-states-in-state-manager

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!