chaos tweak

This commit is contained in:
ntr 2019-10-07 12:32:00 +11:00
parent 0a327786ce
commit d88b0815af

View File

@ -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() {