回答編集履歴

1

不必要なコード削除

2021/01/26 07:09

投稿

int32_t
int32_t

スコア20884

test CHANGED
@@ -23,8 +23,6 @@
23
23
  document.querySelector('#mt').addEventListener('animationend', closeDoors);
24
24
 
25
25
  }
26
-
27
-
28
26
 
29
27
 
30
28
 
@@ -76,9 +74,7 @@
76
74
 
77
75
  async function navigate(direction, url) {
78
76
 
79
- let mt = document.querySelector('#mt');
80
-
81
- await animatePromise(mt, '1.5s ease ' + direction);
77
+ await animatePromise(document.querySelector('#mt'), '1.5s ease ' + direction);
82
78
 
83
79
 
84
80