回答編集履歴
1
不必要なコード削除
answer
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
document.querySelector('#mt').addEventListener('animationend', closeDoors);
|
13
13
|
}
|
14
14
|
|
15
|
-
|
16
15
|
const closeDoors = () => {
|
17
16
|
document.querySelector('.right').style.animation = '1.5s closeR';
|
18
17
|
document.querySelector('.left').style.animation = '1.5s closeL';
|
@@ -37,8 +36,7 @@
|
|
37
36
|
}
|
38
37
|
|
39
38
|
async function navigate(direction, url) {
|
40
|
-
let mt = document.querySelector('#mt');
|
41
|
-
await animatePromise(mt, '1.5s ease ' + direction);
|
39
|
+
await animatePromise(document.querySelector('#mt'), '1.5s ease ' + direction);
|
42
40
|
|
43
41
|
document.querySelector('.right').style.animation = '1.5s closeR';
|
44
42
|
await animatePromise(document.querySelector('.left'), '1.5s closeL');
|