动画视图状态在州长 [英] Animate view states in State Manager
问题描述
这是一个jsFiddle: http://jsfiddle.net/Xkg6X/
由于某种原因,每个视图状态的隐藏功能都不会被触发,我可以创建一个自定义动画进行删除。
你不会调用隐藏功能,所以不会执行。
您可以使用状态管理器的异步转换功能来实现您尝试执行的操作。这是一个jsFiddle: http://jsfiddle.net/Xkg6X/1/
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
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/
这篇关于动画视图状态在州长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!