回答編集履歴

2

コード修正

2020/03/29 07:03

投稿

hatena19
hatena19

スコア33761

test CHANGED
@@ -16,11 +16,11 @@
16
16
 
17
17
  if ( scroll_len > 0 && scroll_len < bottom_len - 100) {
18
18
 
19
- $('.menu').animate({height: 'show'}, 'slow' );
19
+ $('.menu').stop().animate({height: 'show'}, 'slow' );
20
20
 
21
21
  } else {
22
22
 
23
- $('.menu').animate({height: 'hide'}, 'slow' );
23
+ $('.menu').stop().animate({height: 'hide'}, 'slow' );
24
24
 
25
25
  }
26
26
 

1

サンプルリンクの追加

2020/03/29 07:03

投稿

hatena19
hatena19

スコア33761

test CHANGED
@@ -27,3 +27,7 @@
27
27
  });
28
28
 
29
29
  ```
30
+
31
+
32
+
33
+ [Codepenサンプル](https://codepen.io/hatena19/pen/ZEGVZop)