Skip to content

timdoherty/jQuery.SpinJS

Repository files navigation

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)

About

jquery plugin for spin.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published