teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

スクロールの記述が抜けてました、、、。

2018/11/09 10:39

投稿

melRel
melRel

スコア12

title CHANGED
File without changes
body CHANGED
@@ -15,7 +15,8 @@
15
15
  ```
16
16
 
17
17
  ```jQuery
18
+ $(window).on('load scroll', function(){
18
- $('.count').each(function(){
19
+ $('.count').each(function(){
19
20
  var self = $(this),
20
21
  thisPosition = self.offset().top,
21
22
  scroll = $(window).scrollTop(),
@@ -50,5 +51,6 @@
50
51
  }
51
52
  timer();
52
53
  }
54
+ });
53
55
  });
54
56
  ```