This commit is contained in:
ntr
2019-07-19 18:24:46 +10:00
parent 18ac220006
commit 8d8a79c712
12 changed files with 114 additions and 67 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ function sourceCast(id, direction) {
const { x, y } = direction;
return anime({
targets: [document.getElementById(id)],
translateX: x * 200,
translateY: y * 200,
translateX: [0, x * 200],
translateY: [0, y * 200],
easing: 'easeInOutElastic',
direction: 'alternate',
duration: TIMES.SOURCE_DURATION_MS,