質問編集履歴
2
内容追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,7 +5,16 @@
|
|
5
5
|
現状、1つの範囲のみであれば、rangeTargetで表示範囲指定し、クラスの付け外しができています。
|
6
6
|
これを複数個所に適応したいです。
|
7
7
|
|
8
|
-
|
8
|
+
現状)
|
9
|
+
header
|
10
|
+
section1←表示
|
11
|
+
section2
|
12
|
+
section3
|
13
|
+
section4
|
14
|
+
section5
|
15
|
+
footer
|
16
|
+
|
17
|
+
実施したいこと)
|
9
18
|
header
|
10
19
|
section1←表示
|
11
20
|
section2
|
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
■コード
|
19
|
+
```
|
19
20
|
window.onscroll = function () {
|
20
21
|
scrollToggleClass("#section1", ".cv_btn", "show");
|
21
22
|
}
|
@@ -31,5 +32,6 @@
|
|
31
32
|
}
|
32
33
|
}
|
33
34
|
}
|
35
|
+
```
|
34
36
|
|
35
37
|
■コード参考サイト:https://hacknote.jp/archives/47954/
|