动画视图状态在州长 [英] Animate view states in State Manager

查看:97
本文介绍了动画视图状态在州长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个State Manager实现,具有2个查看状态。我想延迟正常删除状态,并在视图被销毁并且状态管理器转换到另一个状态时添加自定义动画。



这是一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆