targetting arrow fr size change
This commit is contained in:
parent
0f1ae4d17a
commit
c8dddcc094
@ -4,7 +4,7 @@
|
|||||||
.game {
|
.game {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: 1fr 0.5fr 1.5fr;
|
grid-template-rows: 1fr 0.75fr 1.5fr;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"opponent"
|
"opponent"
|
||||||
|
|||||||
@ -6,8 +6,8 @@ function sourceCast(id, direction, idle) {
|
|||||||
const { x, y } = direction;
|
const { x, y } = direction;
|
||||||
return anime({
|
return anime({
|
||||||
targets: [document.getElementById(id)],
|
targets: [document.getElementById(id)],
|
||||||
translateX: x * window.screen.width * 0.15,
|
translateX: x * window.screen.width * 0.1,
|
||||||
translateY: y * window.screen.height * 0.15,
|
translateY: y * window.screen.height * 0.1,
|
||||||
easing: 'easeInOutElastic',
|
easing: 'easeInOutElastic',
|
||||||
direction: 'alternate',
|
direction: 'alternate',
|
||||||
duration: TIMES.SOURCE_DURATION_MS,
|
duration: TIMES.SOURCE_DURATION_MS,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user