GitXplorerGitXplorer
k

jquery-spin

public
25 stars
7 forks
3 issues

Commits

List of commits on branch master.
Unverified
dc4553f1646155277b0f35b028554477bcfd1983

packaging

kksylvest committed 11 years ago
Unverified
4c59c93fb4ef55d9e3e451c2c0359998c6e00a97

fixing package

kksylvest committed 11 years ago
Unverified
b7e89f56079b8d684e52bc2b5a30b4f766d8da4e

fixing bower

kksylvest committed 11 years ago
Unverified
94c50b43564c17e8f7772c0054c2c5237a9db30c

updates

kksylvest committed 11 years ago
Unverified
0ebe222a63e4b3c199f4845a2456648a79346bd7

fixed bower for spin

kksylvest committed 11 years ago
Unverified
1d9623ca18a79231ed537369b41a7ab9e3cdc1e1

added some notes to the readme

kksylvest committed 11 years ago

README

The README file for this repository.

jQuery Spin

Spin is a jQuery plugin that creates animated loading indicators with only CSS and JavaScript.

Installation

To install copy the javascripts and stylesheets directories into your project and add the following snippet to the header:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="https://raw.githubusercontent.com/ksylvest/jquery-spin/master/javascripts/jquery.spin.js" type="text/javascript"></script>
<link href="stylesheets/jquery.spin.css" rel="stylesheet" type="text/css" />

This plugin is also registered under http://bower.io/ to simplify integration. Try:

npm install -g bower
bower install spin

Lastly this plugin is registered as a https://rails-assets.org/ to simplify integration with Ruby on Rails applications:

Gemfile

+ source 'https://rails-assets.org'
...
+ gem 'rails-assets-spin'

application.css

/*
 ...
 *= require spin
 ...
*/

application.js

//= require jquery
...
//= require spin

Examples

Setting up a spinner is simple. The following snippet is all that is needed:

<div class="spin" data-spin />

To add spinners manually try:

$('.spin').spin();
$('.spin').spin('show');
$('.spin').spin('hide');

Styling

Styling a spinner is easy:

.spin
{
  background: #444; /* outline */
  > *
  {
    background: #EEE; /* hand */
  }
}

Status

Status

Copyright

Copyright (c) 2010 - 2014 Kevin Sylvestre. See LICENSE for details.