From d88b0815afdddf303778befb313e5696dc3ae4b3 Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 7 Oct 2019 12:32:00 +1100 Subject: [PATCH] chaos tweak --- client/src/components/anims/chaos.jsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/client/src/components/anims/chaos.jsx b/client/src/components/anims/chaos.jsx index 1b0b9f56..08635b26 100644 --- a/client/src/components/anims/chaos.jsx +++ b/client/src/components/anims/chaos.jsx @@ -55,9 +55,6 @@ class Chaos extends Component { translateX: -(window.screen.width) * 0.15 * this.props.direction.x, opacity: 0, }); - // anime.set('#explosion feDisplacementMap', { - // scale: 1, - // }); this.animations.push(anime({ targets: '.skill-anim', @@ -77,23 +74,17 @@ class Chaos extends Component { duration: (TIMES.TARGET_DURATION_MS * 1 / 2), easing: 'easeInQuad', })); - // this.animations.push(anime({ - // targets: '#explosion feDisplacementMap', - // scale: 75, - // loop: false, - // delay: (TIMES.TARGET_DELAY_MS + TIMES.TARGET_DURATION_MS * 2 / 3), - // duration: (TIMES.TARGET_DURATION_MS * 1 / 3), - // easing: 'easeInQuad', - // })); - projectiles.forEach(proj => anime({ + projectiles.forEach(proj => this.animations.push(anime({ targets: proj, cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)), cy: 200 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)), + // opacity: 0, + delay: TIMES.TARGET_DELAY_MS, duration: (TIMES.TARGET_DURATION_MS * 2 / 3), easing: 'easeInQuad', - })); + }))); } componentWillUnmount() {