【问题标题】:Can I set global fx properties in MooTools?我可以在 MooTools 中设置全局 fx 属性吗?
【发布时间】:2009-10-13 14:18:05
【问题描述】:

有没有办法为 MooTools 效果设置一些默认属性,例如持续时间或过渡?

这样可以更轻松地使所有这些效果像 element.tween();element.reveal() 统一。

【问题讨论】:

    标签: javascript mootools effects


    【解决方案1】:

    您可以使用 implement() 覆盖默认值。

    Fx.implement({options: {duration: 600}}) 
    

    【讨论】:

    猜你喜欢
    • 2011-06-30
    • 2014-10-26
    • 1970-01-01
    • 2019-10-30
    • 1970-01-01
    • 2011-10-20
    • 1970-01-01
    • 2011-04-26
    • 1970-01-01
    相关资源
    最近更新 更多