質問編集履歴
2
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -176,24 +176,20 @@
|
|
176
176
|
|
177
177
|
}
|
178
178
|
|
179
|
+
|
180
|
+
|
179
|
-
.slick-
|
181
|
+
.slick-track{
|
180
|
-
|
182
|
+
|
181
|
-
|
183
|
+
margin-bottom:25px;
|
182
184
|
|
183
185
|
}
|
184
186
|
|
185
|
-
.slick-t
|
187
|
+
.slick-dots li{
|
186
|
-
|
188
|
+
|
187
|
-
|
189
|
+
padding:0px 25px 0px 25px !important;
|
188
190
|
|
189
191
|
}
|
190
192
|
|
191
|
-
.slick-dots li{
|
192
|
-
|
193
|
-
padding:0px 25px 0px 25px !important;
|
194
|
-
|
195
|
-
}
|
196
|
-
|
197
193
|
}
|
198
194
|
|
199
195
|
```
|
1
javascript,cssの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,46 +22,184 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
```html
|
26
|
+
|
27
|
+
<head>
|
28
|
+
|
29
|
+
<link rel="stylesheet" type="text/css" href=".../css/slick.css"/>
|
30
|
+
|
31
|
+
<link rel="stylesheet" href=".../css/slick-theme.css">
|
32
|
+
|
33
|
+
</head>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<body>
|
38
|
+
|
39
|
+
<div class="content">
|
40
|
+
|
41
|
+
<ul class="slider mypattern">
|
42
|
+
|
43
|
+
<li><a href="#"><img src="image1.png"></a></li>
|
44
|
+
|
45
|
+
<li><a href="#"><img src="image2.png"></a></li>
|
46
|
+
|
47
|
+
<li><a href="#"><img src="image3.png"></a></li>
|
48
|
+
|
49
|
+
<li><a href="#"><img src="image4.png"></a></li>
|
50
|
+
|
51
|
+
</ul>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
56
|
+
|
57
|
+
<script src=".../js/slick.min.js" type="text/javascript"></script>
|
58
|
+
|
59
|
+
</body>
|
60
|
+
|
25
61
|
```
|
26
62
|
|
63
|
+
|
64
|
+
|
27
|
-
|
65
|
+
```Javascript
|
28
|
-
|
29
|
-
|
66
|
+
|
30
|
-
|
31
|
-
<link rel="stylesheet" href=".../css/slick-theme.css">
|
32
|
-
|
33
|
-
</head>
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<body>
|
38
|
-
|
39
|
-
|
67
|
+
$("document").ready(function(){
|
40
|
-
|
68
|
+
|
41
|
-
|
69
|
+
$('.mypattern').slick({
|
70
|
+
|
42
|
-
|
71
|
+
autoplay: true,
|
72
|
+
|
73
|
+
autoplaySpeed: 2500,
|
74
|
+
|
75
|
+
speed: 800,
|
76
|
+
|
77
|
+
dots: true,
|
78
|
+
|
79
|
+
arrows: false,
|
80
|
+
|
81
|
+
centerMode: true,
|
82
|
+
|
83
|
+
centerPadding: '20%',
|
84
|
+
|
85
|
+
responsive: [ //レスポンシブの設定
|
86
|
+
|
87
|
+
{
|
88
|
+
|
43
|
-
|
89
|
+
breakpoint: 761, //ブレークポイント1の値
|
44
|
-
|
90
|
+
|
45
|
-
|
91
|
+
settings: { //ブレークポイント1のオプション
|
46
|
-
|
47
|
-
|
92
|
+
|
48
|
-
|
49
|
-
<li><a href="#"><img src="image4.png"></a></li>
|
50
|
-
|
51
|
-
|
93
|
+
slidesToShow: 1,
|
52
|
-
|
53
|
-
|
94
|
+
|
54
|
-
|
55
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
56
|
-
|
57
|
-
<script src=".../js/slick.min.js" type="text/javascript"></script>
|
58
|
-
|
59
|
-
|
95
|
+
slidesToScroll: 1,
|
96
|
+
|
97
|
+
infinite: true,
|
98
|
+
|
99
|
+
dots: true,
|
100
|
+
|
101
|
+
centerPadding: '0%'
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
}]
|
106
|
+
|
107
|
+
});
|
108
|
+
|
109
|
+
});
|
60
110
|
|
61
111
|
```
|
62
112
|
|
63
113
|
|
64
114
|
|
115
|
+
```css
|
116
|
+
|
117
|
+
.mypattern {
|
118
|
+
|
119
|
+
width: 100%;
|
120
|
+
|
121
|
+
margin: 0 auto 80px;
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
.slick-slide img {
|
126
|
+
|
127
|
+
width: 100%;
|
128
|
+
|
129
|
+
height: auto;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
.mypattern{
|
134
|
+
|
135
|
+
width: 100%;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
.mypattern .slick-slide{
|
140
|
+
|
141
|
+
margin: 5px;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
.mypattern .slick-slide:not(.slick-center) {
|
148
|
+
|
149
|
+
-webkit-filter: opacity(20%);
|
150
|
+
|
151
|
+
-moz-filter: opacity(20%);
|
152
|
+
|
153
|
+
-o-filter: opacity(20%);
|
154
|
+
|
155
|
+
-ms-filter: opacity(20%);
|
156
|
+
|
157
|
+
filter: opacity(20%);
|
158
|
+
|
159
|
+
transition: 0.2s linear;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
@media screen and (min-width:961px){
|
166
|
+
|
167
|
+
.content{
|
168
|
+
|
169
|
+
width:1260px;
|
170
|
+
|
171
|
+
margin-left:-132px;
|
172
|
+
|
173
|
+
margin-right:-132px;
|
174
|
+
|
175
|
+
margin-bottom:75px;
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
.slick-dots li.slick-active button:before{
|
180
|
+
|
181
|
+
content: url("https://gigaplus.makeshop.jp/satocamera/creator%20mode/banner/activegreen.png");
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
.slick-track{
|
186
|
+
|
187
|
+
margin-bottom:25px;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
.slick-dots li{
|
192
|
+
|
193
|
+
padding:0px 25px 0px 25px !important;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
|
202
|
+
|
65
203
|
### 試したこと
|
66
204
|
|
67
205
|
|