|
1 | 1 | /* eslint-env browser */ |
2 | | -async function animateCSS (node, animationName, duration) { |
| 2 | +async function animateCSS(node, animationName, duration) { |
3 | 3 | return await new Promise((resolve) => { |
4 | 4 | const oldStyle = node.style |
5 | 5 | node.classList.add('animated', animationName) |
6 | | - if(duration) { |
| 6 | + if (duration) { |
7 | 7 | node.style.animationDuration = duration |
8 | 8 | node.style.faAnimationDuration = duration |
9 | 9 | } |
@@ -51,10 +51,9 @@ function listen(element, upOrDown) { |
51 | 51 | }, |
52 | 52 | ) |
53 | 53 |
|
54 | | - |
55 | 54 | await Promise.all([ |
56 | 55 | animateCSS(tr, 'zoomOut', animationDuration), |
57 | | - animateCSS(otherTr, 'zoomOut', animationDuration) |
| 56 | + animateCSS(otherTr, 'zoomOut', animationDuration), |
58 | 57 | ]) |
59 | 58 |
|
60 | 59 | tr.style.visibility = 'hidden' |
@@ -93,7 +92,7 @@ function listen(element, upOrDown) { |
93 | 92 |
|
94 | 93 | await Promise.all([ |
95 | 94 | animateCSS(tr, 'zoomIn', animationDuration), |
96 | | - animateCSS(otherTr, 'zoomIn', animationDuration) |
| 95 | + animateCSS(otherTr, 'zoomIn', animationDuration), |
97 | 96 | ]) |
98 | 97 |
|
99 | 98 | return false |
|
0 commit comments