回答編集履歴
1
コード修正
test
CHANGED
@@ -6,14 +6,24 @@
|
|
6
6
|
|
7
7
|
```js
|
8
8
|
|
9
|
-
|
9
|
+
$('.menu').mouseover(function(e) {
|
10
|
+
|
11
|
+
setTimeout(() => $(this).children().css("display","block"), 0);
|
12
|
+
|
13
|
+
$(this).children().removeClass("hide");
|
14
|
+
|
15
|
+
})
|
10
16
|
|
11
17
|
|
12
18
|
|
13
|
-
|
19
|
+
$('.menu').mouseout(function(e) {
|
14
20
|
|
15
|
-
|
21
|
+
$('.sub-menu-list').addClass("hide");
|
16
22
|
|
23
|
+
setTimeout(() => $(this).children().css("display","none"), 200);
|
24
|
+
|
25
|
+
// opacityが0になるタイミングでdisplay:noneを付与する
|
26
|
+
|
17
|
-
|
27
|
+
})
|
18
28
|
|
19
29
|
```
|