fk discord

This commit is contained in:
Mashy
2019-07-03 00:00:55 +10:00
parent dd3c6dc2a6
commit 6b3a159988
2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -52,7 +52,7 @@ class TriageTick extends Component {
this.animations.push(anime({
targets: ['#triageTick'],
opacity: [
{ value: 1, delay: TIMES.TARGET_DELAY_MS, duration: TIMES.TARGET_DURATION_MS * 0.2 },
{ value: 1, duration: TIMES.TARGET_DURATION_MS * 0.2 },
{ value: 0, delay: TIMES.TARGET_DURATION_MS * 0.6, duration: TIMES.TARGET_DURATION_MS * 0.2 },
],
easing: 'easeInOutSine',
@@ -62,11 +62,16 @@ class TriageTick extends Component {
targets: ['#triageTick circle'],
cx: 150,
cy: 200,
delay: TIMES.TARGET_DELAY_MS,
duration: TIMES.TARGET_DURATION_MS,
easing: 'easeInOutElastic',
}));
}
componentWillUnmount() {
for (let i = this.animations.length - 1; i >= 0; i--) {
this.animations[i].reset();
}
}
}
module.exports = TriageTick;