diff --git a/README.md b/README.md index 3943e21..eebe1ba 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ $('#yourElement').addClass('animated bounceOutLeft'); You can also detect when an animation ends: ```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: