[英]Can I set global fx properties in MooTools?
Is there a way to set some default properties for MooTools effects like duration or transition? 有没有办法为MooTools效果设置一些默认属性,如持续时间或过渡?
That would make it easier to make all those effects like element.tween();
这样可以更容易地制作所有这些效果,如element.tween();
or element.reveal()
uniform. 或element.reveal()
制服。
您可以使用implement()覆盖默认值。
Fx.implement({options: {duration: 600}})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.