This commit is contained in:
ntr
2019-07-19 14:21:11 +10:00
parent 860c70c4a1
commit 028606e804
11 changed files with 371 additions and 259 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ const anime = require('animejs').default;
const { TIMES } = require('../../constants');
function sourceCast(id, params) {
const { x, y } = params;
function sourceCast(id, direction) {
const { x, y } = direction;
return anime({
targets: [document.getElementById(id)],
translateX: x * 200,