double hybrid
This commit is contained in:
parent
a72c1486e2
commit
a35ea182e5
@ -30,7 +30,7 @@ class Hybrid extends Component {
|
|||||||
</defs>
|
</defs>
|
||||||
<g filter="url(#hybridFilter)">
|
<g filter="url(#hybridFilter)">
|
||||||
<circle
|
<circle
|
||||||
class="green"
|
class="green-one"
|
||||||
cx='50'
|
cx='50'
|
||||||
cy='150'
|
cy='150'
|
||||||
r='10'
|
r='10'
|
||||||
@ -38,7 +38,15 @@ class Hybrid extends Component {
|
|||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<circle
|
<circle
|
||||||
class="bluewhite"
|
class="green-two"
|
||||||
|
cx='250'
|
||||||
|
cy='150'
|
||||||
|
r='10'
|
||||||
|
fill={COLOURS.GREEN}
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<circle
|
||||||
|
class="bluewhite-one"
|
||||||
cx='150'
|
cx='150'
|
||||||
cy='50'
|
cy='50'
|
||||||
r='10'
|
r='10'
|
||||||
@ -46,13 +54,30 @@ class Hybrid extends Component {
|
|||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<circle
|
<circle
|
||||||
class="bluewhite"
|
class="bluewhite-one"
|
||||||
cx='150'
|
cx='150'
|
||||||
cy='50'
|
cy='50'
|
||||||
r='7'
|
r='7'
|
||||||
fill={COLOURS.WHITE}
|
fill={COLOURS.WHITE}
|
||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
|
<circle
|
||||||
|
class="bluewhite-two"
|
||||||
|
cx='150'
|
||||||
|
cy='250'
|
||||||
|
r='10'
|
||||||
|
fill={COLOURS.BLUE}
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<circle
|
||||||
|
class="bluewhite-two"
|
||||||
|
cx='150'
|
||||||
|
cy='250'
|
||||||
|
r='7'
|
||||||
|
fill={COLOURS.WHITE}
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
@ -75,7 +100,7 @@ class Hybrid extends Component {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
this.animations.push(anime({
|
this.animations.push(anime({
|
||||||
targets: ['#hybrid circle.green'],
|
targets: ['#hybrid circle.green-one'],
|
||||||
cx: [50, 250, 50, 250],
|
cx: [50, 250, 50, 250],
|
||||||
delay: TIMES.TARGET_DELAY_MS,
|
delay: TIMES.TARGET_DELAY_MS,
|
||||||
duration: TIMES.TARGET_DURATION_MS,
|
duration: TIMES.TARGET_DURATION_MS,
|
||||||
@ -84,7 +109,16 @@ class Hybrid extends Component {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
this.animations.push(anime({
|
this.animations.push(anime({
|
||||||
targets: ['#hybrid circle.bluewhite'],
|
targets: ['#hybrid circle.green-two'],
|
||||||
|
cy: [250, 50, 250, 50],
|
||||||
|
delay: TIMES.TARGET_DELAY_MS,
|
||||||
|
duration: TIMES.TARGET_DURATION_MS,
|
||||||
|
easing: 'easeInOutSine',
|
||||||
|
loop: true,
|
||||||
|
}));
|
||||||
|
|
||||||
|
this.animations.push(anime({
|
||||||
|
targets: ['#hybrid circle.bluewhite-one'],
|
||||||
cy: [50, 250, 50, 250],
|
cy: [50, 250, 50, 250],
|
||||||
delay: TIMES.TARGET_DELAY_MS,
|
delay: TIMES.TARGET_DELAY_MS,
|
||||||
duration: TIMES.TARGET_DURATION_MS,
|
duration: TIMES.TARGET_DURATION_MS,
|
||||||
@ -92,6 +126,16 @@ class Hybrid extends Component {
|
|||||||
loop: true,
|
loop: true,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
this.animations.push(anime({
|
||||||
|
targets: ['#hybrid circle.bluewhite-two'],
|
||||||
|
cx: [250, 50, 250, 50],
|
||||||
|
delay: TIMES.TARGET_DELAY_MS,
|
||||||
|
duration: TIMES.TARGET_DURATION_MS,
|
||||||
|
easing: 'easeInOutSine',
|
||||||
|
loop: true,
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user