Spin.js - spinner with no CSS, Images
Provides an easy-to-use Rails 3.1 asset for Spin.js
Install
Add it to your Rails application's Gemfile
:
gem 'spinjs-rails'
Then bundle install
.
Usage
Require spin
:
or as jQuery plugin:
$(".abc").spin();
$(".abc").spin(false);
$(".abc").spin({
lines: 12,
length: 7,
width: 9,
radius: 30,
color: '#000',
speed: 1,
trail: 60,
shadow: false
});
$("#el").spin("small");
$("#el").spin("large", "white");
See the full usage details on the spin.js site.
License
MIT by @dnagir.
Thanks
Thanks to all contributors and the author of the spin.js