Daniel L
Daniel L

Reputation: 33

Can I set global fx properties in MooTools?

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.

Upvotes: 3

Views: 142

Answers (1)

Andreas Köberle
Andreas Köberle

Reputation: 110972

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

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

Upvotes: 6

Related Questions