Can I set fx global properties in MooTools?

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

This will make it easier to perform all such effects as element.tween();or element.reveal().

+3
source share
1 answer

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

Fx.implement({options: {duration: 600}}) 
+6
source

Source: https://habr.com/ru/post/1719987/


All Articles