Makes asynchronous method calls fun.
This Plugin is part of MooTools PowerTools! and has been created by Scott Kyle.
This plugin allows you to chain method calls on elements. Very useful for CSS-Transitions!
// basic usage element.wait(1000).addClass('loaded').removeClass('loading'); // you can even chain waits element.wait(500).fade('in').wait(2000).fade('out');
Build via Packager, requires MooTools Core to be registered to Packager already
packager register /path/to/element-wait packager build Element.Wait/* > element-wait.js
To build this plugin without external dependencies use
packager build Element.Wait/* +use-only Element.Wait > element-wait.js
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus