bikutoru, This "feature" already exists... Try it again because it MUST work...
Follow these links: http://www.mochikit.com/doc/html/MochiKit/Visual.html#fn-fade http://www.mochikit.com/doc/html/MochiKit/Visual.html#fn-defaultoptions PS: Note that not all options are listed in the fade function docs... [s] Pigmeu bikutoru escreveu: > I need to modify the default duration of Visual effects. > Of course I can go and modify the source code or redefine the: > > MochiKit.Visual.DefaultOptions = { > transition: MochiKit.Visual.Transitions.sinoidal, > // duration: 1.0, // seconds > duration: 0.5, // seconds > fps: 25.0, // max. 25fps due to MochiKit.Visual.Queue > implementation > sync: false, // true for combining > from: 0.0, > to: 1.0, > delay: 0.0, > queue: 'parallel' > }; > > in my script. But it seems that it would be much cleaner if we could > pass an optional argument to an effect: > > MochiKit.Visual.fade(element, {duration : x}); > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
