コメントありがとうございます。 console.logの件は、どなたかがコメント…
animateを使用する時の注意点
animate中に同じ処理が繰り返されると
不具合の原因になったり、処理が重くなって良いことが無いので
not(“:animae”)を付ける
$(window).scroll(function(){ if(100 < $(this).scrollTop()){ $('#hoge').not(':animated').animate({ CSS }, 1000); }else{ $('#hoge').not(':animated').animate({ CSS }, 1000); }; });
コメントを残す