flk-animator
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -22,10 +22,8 @@ class Animator { | ||
animate(element, animation, speedMode = Animator.NORMAL_SPEED) { | ||
element = $(element); | ||
return new Promise((resolve, reject) => { | ||
let classes = 'animated ' + animation + ' ' + speedMode; | ||
element.show().addClass(classes).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function (e) { | ||
// $(this).removeClass(classes); | ||
resolve(); | ||
}); | ||
element.style.display = 'block'; | ||
element.classList.add(...classes.split(' ')); | ||
}); | ||
@@ -32,0 +30,0 @@ } |
{ | ||
"name": "flk-animator", | ||
"description": "Animate.css animation on elements", | ||
"version": "0.1.2", | ||
"dependencies": { | ||
"flk-jquery": "0.1.1" | ||
}, | ||
"version": "0.1.3", | ||
"externals": { | ||
@@ -9,0 +6,0 @@ "css": { |
0
5788
120
- Removedflk-jquery@0.1.1
- Removedflk-jquery@0.1.1(transitive)
- Removedjquery@3.3.1(transitive)