mirror of
https://github.com/animate-css/animate.css.git
synced 2024-09-29 22:41:31 +02:00
Merge pull request #605 from jabranr/update-jquery-plugin-example
Replace unnecessary jQuery $(this) to this
This commit is contained in:
commit
f4ac5f2889
@ -156,7 +156,7 @@ You can also extend jQuery to add a function that does it all for you:
|
|||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
animateCss: function (animationName) {
|
animateCss: function (animationName) {
|
||||||
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
|
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
|
||||||
$(this).addClass('animated ' + animationName).one(animationEnd, function() {
|
this.addClass('animated ' + animationName).one(animationEnd, function() {
|
||||||
$(this).removeClass('animated ' + animationName);
|
$(this).removeClass('animated ' + animationName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user