views:

60

answers:

1

Is there a way to set some default properties for MooTools effects like duration or transition?

That would make it easier to make all those effects like element.tween(); or element.reveal() uniform.

+3  A: 

You can use implement() to overwrite the default values.

Fx.implement({options: {duration: 600}})
eskimoblood
See http://mootools.net/docs/core/Class/Class#Class:implement for more information on this function.
Nathan Kleyn