Merge pull request #594 from zhouxinyong/master

add npm installation to readme
This commit is contained in:
Daniel Eden 2016-09-02 08:37:02 -07:00 committed by GitHub
commit f50ffa5a64
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ To install via Bower, simply do the following:
```bash
$ bower install animate.css --save
```
or you can install via npm:
```bash
$ npm install animate.css --save
```
##Basic Usage
1. Include the stylesheet on your document's `<head>`
@ -146,7 +151,7 @@ http://api.jquery.com/one/
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);
```
[View a video tutorial](https://www.youtube.com/watch?v=CBQGl6zokMs) on how to use Animate.css with jQuery here.
[View a video tutorial](https://www.youtube.com/watch?v=CBQGl6zokMs) on how to use Animate.css with jQuery here.
**Note:** `jQuery.one()` is used when you want to execute the event handler at most *once*. More information [here](http://api.jquery.com/one/).