spinner_helper

spinner


License
MIT
Install
bower install spinner_helper

Documentation

spinner_helper

Demo

Hides a DOM element, creates a new one next to it with the original element's dimensions, adds a vertically and horizonally centered css spinner inside the new element.

Usage

var spinnerHelper = new SpinnerHelper($('#el'));

Call the destroy method to delete the spinner and unhide the original element.

spinnerHelper.destroy();

Installation

Download the dist/spinner_helper.js file and add it to your page.

Or install with bower:

$ bower install spinner_helper

Requirements

jQuery >= 1.7.2
spin.js