質問編集履歴

2

編集依頼への対応

2019/09/04 05:18

投稿

Mo52
Mo52

スコア6

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,215 @@
47
47
 
48
48
 
49
49
  ![イメージ説明](543ec117bd2e82cb753a48d77f100b1c.png)
50
+
51
+
52
+
53
+ ```スライドのhtml&CSS
54
+
55
+ ●HTMLーーーーーーーーーーーーーーーーー
56
+
57
+
58
+
59
+ <div id="mv">
60
+
61
+ <ul class="slider">
62
+
63
+ <li></li>
64
+
65
+ <li></li>
66
+
67
+ <li></li>
68
+
69
+ </ul>
70
+
71
+
72
+
73
+ ●PCサイト用CSSーーーーーーーーーーーーー
74
+
75
+
76
+
77
+ #mv {
78
+
79
+ position: relative;
80
+
81
+ display: flex;
82
+
83
+ justify-content: center;
84
+
85
+ align-items: center;
86
+
87
+ width: 100%;
88
+
89
+ height: 100vh;
90
+
91
+ }
92
+
93
+
94
+
95
+ .slider {
96
+
97
+ position: absolute;
98
+
99
+ top: 0;
100
+
101
+ left: 0;
102
+
103
+ overflow: hidden;
104
+
105
+ width: 100%;
106
+
107
+ height: 100%;
108
+
109
+ z-index: 0;
110
+
111
+
112
+
113
+ }
114
+
115
+
116
+
117
+ .slider li {
118
+
119
+ background-size: cover;
120
+
121
+ background-repeat: no-repeat;
122
+
123
+ background-position: center;
124
+
125
+ width: 100%;
126
+
127
+ height: 100%;
128
+
129
+ position: absolute;
130
+
131
+ top: 0;
132
+
133
+ left: 0;
134
+
135
+ background-attachment: fixed;
136
+
137
+ animation-iteration-count: infinite;
138
+
139
+ -webkit-animation-iteration-count: infinite;
140
+
141
+ animation-duration: 24s;
142
+
143
+ -webkit-animation-duration: 24s;
144
+
145
+ }
146
+
147
+ .slider li:nth-child(1) {
148
+
149
+ background-image: url("../images/kv01.jpg");
150
+
151
+ animation-name: slider-zoomin;
152
+
153
+ -webkit-animation-name: slider-zoomin;
154
+
155
+ animation-delay: -3s;
156
+
157
+ -webkit-animation-delay: -3s;
158
+
159
+ }
160
+
161
+ .slider li:nth-child(2) {
162
+
163
+ background-image: url(../images/kv02.jpg);
164
+
165
+ animation-name: slider-zoomin;
166
+
167
+ -webkit-animation-name: slider-zoomin;
168
+
169
+ opacity: 0;
170
+
171
+ animation-delay: 5s;
172
+
173
+ -webkit-animation-delay: 5s;
174
+
175
+ }
176
+
177
+ .slider li:nth-child(3) {
178
+
179
+ background-image: url(../images/kv03.jpg);
180
+
181
+ animation-name: slider-zoomin;
182
+
183
+ -webkit-animation-name: slider-zoomin;
184
+
185
+ opacity: 0;
186
+
187
+ animation-delay: 13s;
188
+
189
+ -webkit-animation-delay: 13s;
190
+
191
+ }
192
+
193
+
194
+
195
+ @keyframes slider-zoomin {
196
+
197
+ 0% {
198
+
199
+ opacity: 0;
200
+
201
+ transform: scale(1);
202
+
203
+ transform: -webkit-scale(1);
204
+
205
+ }
206
+
207
+ 20.83% {
208
+
209
+ opacity: 1;
210
+
211
+ }
212
+
213
+ 33.33% {
214
+
215
+ opacity: 1;
216
+
217
+ }
218
+
219
+ 45.83% {
220
+
221
+ opacity: 0;
222
+
223
+ }
224
+
225
+ 100% {
226
+
227
+ opacity: 0;
228
+
229
+ transform: scale(1.2);
230
+
231
+ transform: -webkit-scale(1.2);
232
+
233
+ }
234
+
235
+ }
236
+
237
+
238
+
239
+ ●スマホ用CSSーーーーーーーーーーーーー
240
+
241
+
242
+
243
+ .slider li:nth-child(1) {
244
+
245
+ background-image: url("../images/sp-kv01.jpg");
246
+
247
+ }
248
+
249
+ .slider li:nth-child(2) {
250
+
251
+ background-image: url(../images/sp-kv02.jpg);
252
+
253
+ }
254
+
255
+ .slider li:nth-child(3) {
256
+
257
+ background-image: url(../images/sp-kv02.jpg);
258
+
259
+ }
260
+
261
+ ```

1

写真を追加しました

2019/09/04 05:18

投稿

Mo52
Mo52

スコア6

test CHANGED
File without changes
test CHANGED
@@ -38,10 +38,12 @@
38
38
 
39
39
 
40
40
 
41
-
42
-
43
41
  [元のサイト](http://m-sdct.sakura.ne.jp/index.html)
44
42
 
45
43
 
46
44
 
47
45
  [スライドのみ抜粋したページ](http://m-sdct.sakura.ne.jp/slider-test.html)
46
+
47
+
48
+
49
+ ![イメージ説明](543ec117bd2e82cb753a48d77f100b1c.png)