flk-animator
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -24,15 +24,6 @@ class Animator { | ||
return new Promise((resolve, reject) => { | ||
let jqueryAnimations = ['fadeIn', 'fadeOut', 'slideDown', 'slideDown', 'hide', 'show']; | ||
if (jqueryAnimations.includes(animation)) { | ||
element[animation](function () { | ||
resolve(); | ||
}); | ||
return; | ||
} | ||
let classes = 'animated ' + animation + ' ' + speedMode; | ||
element.stop().show().removeClass(classes).addClass(classes).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function (e) { | ||
$(this).removeClass(classes); | ||
element.show().addClass(classes).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function (e) { | ||
// $(this).removeClass(classes); | ||
resolve(); | ||
@@ -39,0 +30,0 @@ }); |
{ | ||
"name": "flk-animator", | ||
"description": "Animate.css animation on elements", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"dependencies": { | ||
"flk-jquery": "0.1.1" | ||
}, | ||
"externals": { | ||
"css": { | ||
"common": [ | ||
"https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" | ||
] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6014
6
123
1
16
3