質問編集履歴

2

マルチポストについて追記しております

2021/01/24 06:52

投稿

top1rk
top1rk

スコア0

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+ <こちらでもマルチポストさせていただいております>
6
+
7
+ https://ja.stackoverflow.com/questions/73542/%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%a8-%e3%81%b5%e3%82%8f%e3%81%a3%e3%81%a8-%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-%e3%81%ae%e5%ae%9f%e8%a3%85%e3%81%8c%e3%81%a7%e3%81%8d%e3%81%be%e3%81%9b%e3%82%93
8
+
9
+
10
+
5
11
  LPを制作しています。初心者です。
6
12
 
7
13
 

1

htmlのhead部分を追記しました。

2021/01/24 06:51

投稿

top1rk
top1rk

スコア0

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,49 @@
44
44
 
45
45
  ソースコード:
46
46
 
47
+ <!DOCTYPE html>
48
+
49
+ <html lang="ja">
50
+
51
+ <head>
52
+
53
+ <meta charset="UTF-8">
54
+
55
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
56
+
57
+ <title>Document</title>
58
+
59
+ <link rel="stylesheet" href="css/style.css">
60
+
61
+ <link rel="stylesheet" type="text/css" href="css/slick.css" media="screen" />
62
+
63
+ <link rel="stylesheet" type="text/css" href="css/slick-theme.css" media="screen" />
64
+
65
+ <link rel="preconnect" href="https://fonts.gstatic.com">
66
+
67
+ <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300&display=swap" rel="stylesheet">
68
+
69
+ <link rel="preconnect" href="https://fonts.gstatic.com">
70
+
71
+ <link href="https://fonts.googleapis.com/css2?family=Sawarabi+Gothic&display=swap" rel="stylesheet">
72
+
73
+ <script type="text/javascript"></script>
74
+
75
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
76
+
77
+ <script src="js/slick.min.js"></script>
78
+
79
+ <script src="js/app.js"></script>
80
+
81
+
82
+
83
+ </head>
84
+
85
+
86
+
87
+ <ul>
88
+
47
- <li class="fadein scroll">
89
+ <li class="fadein scrollin">
48
90
 
49
91
  テキストが入ります。
50
92
 
@@ -64,6 +106,8 @@
64
106
 
65
107
  </li>
66
108
 
109
+ </ul>
110
+
67
111
 
68
112
 
69
113
  【CSS】
@@ -82,7 +126,7 @@
82
126
 
83
127
 
84
128
 
85
- .scroll {
129
+ .scrollin {
86
130
 
87
131
  opacity : 1;
88
132
 
@@ -110,7 +154,7 @@
110
154
 
111
155
  if (scroll > elemPos - windowHeight + 200){
112
156
 
113
- $(this).addClass('.scroll');
157
+ $(this).addClass('.scrollin');
114
158
 
115
159
  }
116
160