質問編集履歴
2
まだ問題が改善されません。ご教示いただけませんでしょうか。
test
CHANGED
File without changes
|
test
CHANGED
@@ -492,6 +492,8 @@
|
|
492
492
|
|
493
493
|
```js
|
494
494
|
|
495
|
+
|
496
|
+
|
495
497
|
$(".slider-works").slick({
|
496
498
|
|
497
499
|
infinite: true,
|
@@ -580,4 +582,6 @@
|
|
580
582
|
|
581
583
|
],
|
582
584
|
|
583
|
-
});
|
585
|
+
});
|
586
|
+
|
587
|
+
```
|
1
関係しそうな箇所は全てUPしました。恐らく今回載せたBlog箇所だけでなく、Workという箇所でも同じくSlickを使用しているのでそこで何か挙動がかぶっているのかなとも考えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,63 @@
|
|
24
24
|
|
25
25
|
```HTML
|
26
26
|
|
27
|
+
<h2 class="works-title fade-in-bottom flex font-title animate" id="works">WORKS</h2>
|
28
|
+
|
29
|
+
<div class="works-inner flex">
|
30
|
+
|
31
|
+
<div class="works-inner-items flex">
|
32
|
+
|
33
|
+
<div class="slider-works flex">
|
34
|
+
|
35
|
+
<div><img src="img/難波.jpg" alt="難波" /></div>
|
36
|
+
|
37
|
+
<div><img src="img/渋谷.jpg" alt="渋谷" /></div>
|
38
|
+
|
39
|
+
<div><img src="img/横浜.jpg" alt="横浜" /></div>
|
40
|
+
|
41
|
+
<div><img src="img/東山.jpg" alt="東山" /></div>
|
42
|
+
|
43
|
+
<div><img src="img/博多.jpg" alt="博多" /></div>
|
44
|
+
|
45
|
+
<div><img src="img/花園.jpg" alt="花園" /></div>
|
46
|
+
|
47
|
+
<div><img src="img/祇園.jpg" alt="祇園" /></div>
|
48
|
+
|
49
|
+
<div><img src="img/吉祥寺.jpg" alt="吉祥寺" /></div>
|
50
|
+
|
51
|
+
<div><img src="img/秋葉原.jpg" alt="秋葉原" /></div>
|
52
|
+
|
53
|
+
<div><img src="img/新宿.jpg" alt="新宿" /></div>
|
54
|
+
|
55
|
+
<div><img src="img/川越.jpg" alt="川越" /></div>
|
56
|
+
|
57
|
+
<div><img src="img/池袋.jpg" alt="池袋" /></div>
|
58
|
+
|
59
|
+
<div><img src="img/天王寺.jpg" alt="天王寺" /></div>
|
60
|
+
|
61
|
+
<div><img src="img/梅田.jpg" alt="梅田" /></div>
|
62
|
+
|
63
|
+
<div><img src="img/伏見稲荷.jpg" alt="伏見稲荷" /></div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<div class="work-font font-title">
|
68
|
+
|
69
|
+
- List of works - <a href="works.html"><i class="work-arrow fas fa-chevron-right"></i></a>
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<h2 class="blog-title fade-in-bottom flex font-title animate" id="blog">
|
78
|
+
|
79
|
+
BLOG
|
80
|
+
|
81
|
+
</h2>
|
82
|
+
|
27
|
-
<div class="blog-inner flex">
|
83
|
+
<div class="blog-inner flex">
|
28
84
|
|
29
85
|
<div class="blog-inner-items flex">
|
30
86
|
|
@@ -78,6 +134,150 @@
|
|
78
134
|
|
79
135
|
```CSS
|
80
136
|
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
/* <====== works ======> */
|
142
|
+
|
143
|
+
h2#works {
|
144
|
+
|
145
|
+
padding-top: 12rem;
|
146
|
+
|
147
|
+
margin-top: -8rem;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
.works-inner {
|
154
|
+
|
155
|
+
width: 100%;
|
156
|
+
|
157
|
+
height: 45rem;
|
158
|
+
|
159
|
+
-webkit-box-orient: vertical;
|
160
|
+
|
161
|
+
-webkit-box-direction: normal;
|
162
|
+
|
163
|
+
-webkit-flex-direction: column;
|
164
|
+
|
165
|
+
-ms-flex-direction: column;
|
166
|
+
|
167
|
+
flex-direction: column;
|
168
|
+
|
169
|
+
margin-bottom: 5rem;
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
.works-inner .works-inner-items {
|
176
|
+
|
177
|
+
width: 90%;
|
178
|
+
|
179
|
+
height: 40rem;
|
180
|
+
|
181
|
+
margin-top: 8rem;
|
182
|
+
|
183
|
+
position: relative;
|
184
|
+
|
185
|
+
-webkit-box-orient: vertical;
|
186
|
+
|
187
|
+
-webkit-box-direction: normal;
|
188
|
+
|
189
|
+
-webkit-flex-direction: column;
|
190
|
+
|
191
|
+
-ms-flex-direction: column;
|
192
|
+
|
193
|
+
flex-direction: column;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
.works-inner .works-inner-items::after {
|
200
|
+
|
201
|
+
width: 100%;
|
202
|
+
|
203
|
+
height: 40rem;
|
204
|
+
|
205
|
+
content: "";
|
206
|
+
|
207
|
+
position: absolute;
|
208
|
+
|
209
|
+
left: 0rem;
|
210
|
+
|
211
|
+
top: 1rem;
|
212
|
+
|
213
|
+
-webkit-transform: skewY(-5deg);
|
214
|
+
|
215
|
+
transform: skewY(-5deg);
|
216
|
+
|
217
|
+
z-index: -1;
|
218
|
+
|
219
|
+
-webkit-transform-origin: bottom left;
|
220
|
+
|
221
|
+
transform-origin: bottom left;
|
222
|
+
|
223
|
+
background: black;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
.works-inner .works-inner-items .slider-works div img {
|
230
|
+
|
231
|
+
margin: 0 auto;
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
.works-inner .works-inner-items .work-font {
|
238
|
+
|
239
|
+
font-size: 1.5rem;
|
240
|
+
|
241
|
+
color: white;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
.works-inner .works-inner-items .work-font a i {
|
248
|
+
|
249
|
+
-webkit-transition-duration: 0.4s;
|
250
|
+
|
251
|
+
transition-duration: 0.4s;
|
252
|
+
|
253
|
+
padding: 2rem;
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
.works-inner .works-inner-items .work-font i:hover {
|
260
|
+
|
261
|
+
-webkit-transform: translateX(20px);
|
262
|
+
|
263
|
+
transform: translateX(20px);
|
264
|
+
|
265
|
+
}
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
.works-inner .works-inner-items .work-font .work-arrow {
|
270
|
+
|
271
|
+
color: white;
|
272
|
+
|
273
|
+
padding: 1rem;
|
274
|
+
|
275
|
+
}
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
/* <====== blog ======> */
|
280
|
+
|
81
281
|
h2#blog {
|
82
282
|
|
83
283
|
padding-top: 12rem;
|
@@ -222,12 +422,132 @@
|
|
222
422
|
|
223
423
|
|
224
424
|
|
425
|
+
/* <====== slick-works ======> */
|
426
|
+
|
427
|
+
.works-inner .works-inner-items .slider-works {
|
428
|
+
|
429
|
+
width: 90%;
|
430
|
+
|
431
|
+
height: 20rem;
|
432
|
+
|
433
|
+
}
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
.works-inner .works-inner-items .slider-works div img {
|
438
|
+
|
439
|
+
width: 25rem;
|
440
|
+
|
441
|
+
height: 18rem;
|
442
|
+
|
443
|
+
}
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
.works-inner .works-inner-items .slick-arrow {
|
448
|
+
|
449
|
+
cursor: pointer;
|
450
|
+
|
451
|
+
position: absolute;
|
452
|
+
|
453
|
+
top: 0;
|
454
|
+
|
455
|
+
bottom: 0;
|
456
|
+
|
457
|
+
margin: auto;
|
458
|
+
|
459
|
+
}
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
.works-inner .works-inner-items .prev-arrow {
|
464
|
+
|
465
|
+
color: white;
|
466
|
+
|
467
|
+
left: -1.5rem;
|
468
|
+
|
469
|
+
top: 8rem;
|
470
|
+
|
471
|
+
z-index: 10;
|
472
|
+
|
473
|
+
}
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
.works-inner .works-inner-items .next-arrow {
|
478
|
+
|
479
|
+
color: white;
|
480
|
+
|
481
|
+
right: -1.5rem;
|
482
|
+
|
483
|
+
top: 8rem;
|
484
|
+
|
485
|
+
}
|
486
|
+
|
487
|
+
|
488
|
+
|
225
489
|
```
|
226
490
|
|
227
491
|
|
228
492
|
|
229
493
|
```js
|
230
494
|
|
495
|
+
$(".slider-works").slick({
|
496
|
+
|
497
|
+
infinite: true,
|
498
|
+
|
499
|
+
autoplay: true,
|
500
|
+
|
501
|
+
arrow: true,
|
502
|
+
|
503
|
+
slidesToShow: 3,
|
504
|
+
|
505
|
+
slidesToScroll: 1,
|
506
|
+
|
507
|
+
autoplaySpeed: 4000,
|
508
|
+
|
509
|
+
centerMode: true,
|
510
|
+
|
511
|
+
centerPadding: "-10%",
|
512
|
+
|
513
|
+
prevArrow: '<i class="prev-arrow fas fa-chevron-left"></i>',
|
514
|
+
|
515
|
+
nextArrow: '<i class="next-arrow fas fa-chevron-right"></i>',
|
516
|
+
|
517
|
+
responsive: [
|
518
|
+
|
519
|
+
{
|
520
|
+
|
521
|
+
breakpoint: 1024,
|
522
|
+
|
523
|
+
settings: {
|
524
|
+
|
525
|
+
infinite: true,
|
526
|
+
|
527
|
+
autoplay: true,
|
528
|
+
|
529
|
+
arrow: true,
|
530
|
+
|
531
|
+
slidesToShow: 2,
|
532
|
+
|
533
|
+
slidesToScroll: 1,
|
534
|
+
|
535
|
+
autoplaySpeed: 4000,
|
536
|
+
|
537
|
+
prevArrow: '<i class="prev-arrow fas fa-chevron-left"></i>',
|
538
|
+
|
539
|
+
nextArrow: '<i class="next-arrow fas fa-chevron-right"></i>',
|
540
|
+
|
541
|
+
},
|
542
|
+
|
543
|
+
},
|
544
|
+
|
545
|
+
],
|
546
|
+
|
547
|
+
});
|
548
|
+
|
549
|
+
|
550
|
+
|
231
551
|
$(".slider-blog").slick({
|
232
552
|
|
233
553
|
slidesToShow: 3,
|
@@ -260,6 +580,4 @@
|
|
260
580
|
|
261
581
|
],
|
262
582
|
|
263
|
-
});
|
583
|
+
});```
|
264
|
-
|
265
|
-
```
|