jquery plugin for spin.js
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components/spin
dist
libs
src
test
.gitattributes
.gitignore
.jshintrc
CONTRIBUTING.md
Gruntfile.js
LICENSE-MIT
README.md
bower.json
jquery.spin.jquery.json
package.json

README.md

jQuery Spin

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

Getting Started

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>

Documentation

(Coming soon)

Examples

(Coming soon)

Release History

(Nothing yet)