chaos tweak
This commit is contained in:
parent
0a327786ce
commit
d88b0815af
@ -55,9 +55,6 @@ class Chaos extends Component {
|
|||||||
translateX: -(window.screen.width) * 0.15 * this.props.direction.x,
|
translateX: -(window.screen.width) * 0.15 * this.props.direction.x,
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
});
|
});
|
||||||
// anime.set('#explosion feDisplacementMap', {
|
|
||||||
// scale: 1,
|
|
||||||
// });
|
|
||||||
|
|
||||||
this.animations.push(anime({
|
this.animations.push(anime({
|
||||||
targets: '.skill-anim',
|
targets: '.skill-anim',
|
||||||
@ -77,23 +74,17 @@ class Chaos extends Component {
|
|||||||
duration: (TIMES.TARGET_DURATION_MS * 1 / 2),
|
duration: (TIMES.TARGET_DURATION_MS * 1 / 2),
|
||||||
easing: 'easeInQuad',
|
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,
|
targets: proj,
|
||||||
cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
|
cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
|
||||||
cy: 200 + (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,
|
delay: TIMES.TARGET_DELAY_MS,
|
||||||
duration: (TIMES.TARGET_DURATION_MS * 2 / 3),
|
duration: (TIMES.TARGET_DURATION_MS * 2 / 3),
|
||||||
easing: 'easeInQuad',
|
easing: 'easeInQuad',
|
||||||
}));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user