more tweaks
This commit is contained in:
parent
5058277776
commit
1cc29f73d1
@ -25,7 +25,7 @@ class Slay extends Component {
|
||||
{times(10, () => (
|
||||
<ellipse
|
||||
cx={anime.random(100, 200)}
|
||||
cy={anime.random(-50, -25)}
|
||||
cy={anime.random(-60, -30)}
|
||||
stroke="none"
|
||||
rx={anime.random(5, 10)}
|
||||
ry={10}
|
||||
@ -51,26 +51,19 @@ class Slay extends Component {
|
||||
|
||||
anime.set('#slay', {
|
||||
rotate,
|
||||
opacity: 1,
|
||||
});
|
||||
|
||||
anime.set('#slay ellipse',{
|
||||
fill: RED,
|
||||
})
|
||||
|
||||
this.animations.push(anime({
|
||||
targets: '#slay',
|
||||
opacity: [
|
||||
{ value: 1, duration: TIMES.TARGET_DURATION_MS * 0.2 },
|
||||
],
|
||||
easing: 'easeInQuad',
|
||||
}));
|
||||
|
||||
this.animations.push(anime({
|
||||
targets: ['#slay ellipse'],
|
||||
cx: 150,
|
||||
cy: 325,
|
||||
delay: TIMES.TARGET_DURATION_MS * 0.2,
|
||||
duration: TIMES.TARGET_DURATION_MS * 0.3,
|
||||
duration: TIMES.TARGET_DURATION_MS * 0.2,
|
||||
duration: TIMES.TARGET_DURATION_MS * 0.4,
|
||||
easing: 'easeOutQuad',
|
||||
direction: 'alternate',
|
||||
}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user