wip fixed source cast

This commit is contained in:
Mashy
2019-07-08 13:46:43 +10:00
parent f24b5afd5c
commit 41eb476c31
8 changed files with 84 additions and 50 deletions
+14 -16
View File
@@ -63,15 +63,6 @@ class Strike extends Component {
}
componentDidMount() {
this.animations.push(anime({
targets: ['#strike'],
opacity: [
{ value: 1, delay: TIMES.TARGET_DELAY_MS, 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',
}));
if (!this.props.team) {
anime.set('#strike', {
rotate: Math.random() * 180 + 90,
@@ -81,15 +72,22 @@ class Strike extends Component {
rotate: Math.random() * 180 + 270,
});
}
anime.set('#strike', {
translateY: -200,
translateX: 0,
});
anime.set('#strikeFilter feDisplacementMap', {
scale: 1,
});
anime({
this.animations.push(anime({
targets: '#strike',
opacity: [
{ value: 1, delay: TIMES.TARGET_DELAY_MS, 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',
}));
this.animations.push(anime({
targets: '#strike',
translateY: 0,
translateX: 0,
@@ -97,14 +95,14 @@ class Strike extends Component {
delay: TIMES.TARGET_DELAY_MS,
duration: (TIMES.TARGET_DURATION_MS * 1 / 2),
easing: 'easeInQuad',
});
anime({
}));
this.animations.push(anime({
targets: '#strikeFilter feDisplacementMap',
scale: 200,
loop: false,
delay: (TIMES.TARGET_DELAY_MS + TIMES.TARGET_DURATION_MS * 1 / 4),
easing: 'easeInQuad',
});
}));
}
componentWillUnmount() {