UNPKG

jquery-easy-loading

Version:

Easily add and manipulate loading states of any element on the page

51 lines (32 loc) 957 B
# jquery-loading [![Build Status](https://travis-ci.org/CarlosBonetti/jquery-loading.svg)](https://travis-ci.org/CarlosBonetti/jquery-loading) Add and manipulate loading states of any element on the page. [Docs and Demos](http://carlosbonetti.github.io/jquery-loading/). ## Getting started Install it, using [npm](https://www.npmjs.com/): ```sh $ npm install --save jquery-easy-loading ``` Include it: ```html <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <script src="jquery.loading.js"></script> ``` Use it: ```javascript $("#some-element").loading(); ``` Visit [the website](http://carlosbonetti.github.io/jquery-loading/) for full list of options, methods and customization. ## Contributing to this project Install dependencies once: ``` $ yarn install ``` Then build the project (generates `dist/` files): ``` $ yarn build ``` Run all tests with: ``` $ yarn test ```