回答編集履歴
1
調整
test
CHANGED
@@ -24,6 +24,8 @@
|
|
24
24
|
|
25
25
|
window.addEventListener('scroll', ()=>{
|
26
26
|
|
27
|
+
var s=window.pageYOffset; //貼り付け忘れ
|
28
|
+
|
27
29
|
t01.classList.toggle('active',s>=100 && s<200);
|
28
30
|
|
29
31
|
t02.classList.toggle('active',s>=200 && s<300);
|