📜 ⬆️ ⬇️

Mootools plugin for animating AJAX requests without gifs

I wanted to somehow animate the execution of ajax requests on pure html + css and completely without gifs. And made a plugin for Mootools, which allows you to get different icons in size, background and type when adding a single Javascript file.

Pros:

And cons:

And everything else, as they say, is better to see once.
Demo here: http://lavmax.github.com/MUX.Loaders
Sources and documentation here: https://github.com/lavmax/MUX.Loaders

Example of use:
//
var loader = new MUX.Loader.Bar();
loader.start(); //
loader.stop(); //

// start() stop() html-
$('my-loaders-id').start();
$('my-loaders-id').stop();

// html- $
$(loader).inject(document.body);
// ,
loader.elem.inject(document.body);


Who liked to use, who did not like scolding constructively please.

')

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


All Articles