Based off of the loadmask jQuery plugin and inspired by the MooTools Spinner class. Adds a customizable overlay to the element being masked and adds a spinner graphic along with a label on top of the overlay.
Uses spin.js for spinner generation. Note that spin.js is not included by default, you'll have to pull that into your project for yourself.
$('#element').mask();
$('#element').mask({
spinner: { lines: 10, length: 5, width: 3, radius: 10},
delay: 1000
});
$('#element').unmask();
Checkout the options for additional customization options.
- Sergiy Kovalchuk
- Michael Bianco (@iloveitaly)
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.