A jQuery plugin for Felix Gnass' excellent spin.js: http://fgnass.github.com/spin.js/
The plugin adds a background div with configurable color and transparency, and supports AMD.
View a demo here
Download the production version or the development version.
In your web page:
<script src="libs/spin/spin.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="dist/jquery.spin.min.js"></script>
<script>
jQuery(function($) {
$('.className').spin(); // show the spinner
$('.className').spin(false); // stop the spinner
});
</script>
- or with optional AMD support, add an alias 'spin' to spin.js:
<script src="libs/requirejs/require.js"></script>
<script>
requirejs.config({
paths: {
'jquery': 'libs/jquery/jquery',
'spin': 'libs/spin/spin'
}
});
require(['jquery', 'dist/jquery.spin.min'], function ($) {
$('.className').spin(); // show the spinner
$('.className').spin(false); // stop the spinner
});
</script>
(Coming soon)
(Coming soon)
(Nothing yet)