简体   繁体   English

切换dojox AutoRotator动画

[英]Switch dojox AutoRotator animation

The rotator allows/requires you to choose which animation to use to transition from one pane to the other (Pan*, Slide*, Wipe*, ...). 旋转器允许/要求您选择用于从一个窗格过渡到另一个窗格的动画(Pan *,Slide *,Wipe *,...)。 Problem is, if I choose "PanLeft" for "next pane" initially, there seems to by no way to use "PanRight" for "previous pane". 问题是,如果我最初为“下一个窗格”选择“ PanLeft”,似乎没有办法为“上一个窗格”使用“ PanRight”。 It's completely unintuitive seeing the same animation played for either direction. 看到在任一方向播放相同的动画完全是不直观的。 I tried changing the rotator object's "transition" property string after creating the object, but that changed nothing. 创建对象后,我尝试更改旋转器对象的“过渡”属性字符串,但这没有任何改变。 It still kept playing the animation it had been initialized with. 它仍然继续播放初始化时使用的动画。

Since there are often undocumented features in dojo, is there are way to actually do it anyway? 由于dojo中经常有未记录的功能,因此是否有实际方法呢? Or will I have to think of something else completely? 还是我必须完全考虑其他事情?

原来,您只需要使用dojox.widget.rotator.Pan而不是dojox.widget.rotator.PanLeft

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM