Update README.md

`one` typo changed to `on` on animation end event and removed invocation brackets, as they shouldn't be there.
This commit is contained in:
Kamil Ogórek 2014-02-25 15:27:28 +01:00
parent 8897f6e799
commit 3e25429ed1

View file

@ -21,7 +21,7 @@ $('#yourElement').addClass('animated bounceOutLeft');
You can also detect when an animation ends: You can also detect when an animation ends:
```javascript ```javascript
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething()); $('#yourElement').on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);
``` ```
You can change the duration of your animations, add a delay or change the number of times that it plays: You can change the duration of your animations, add a delay or change the number of times that it plays: