回答編集履歴
1
追記
test
CHANGED
@@ -1 +1,39 @@
|
|
1
1
|
[ここ](https://github.com/nolimits4web/swiper/issues/273)参考になりませんか?
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
少なくとも書き方が違います。
|
6
|
+
|
7
|
+
```JavaScript
|
8
|
+
|
9
|
+
for( var i = 0; i < 5; i++ ) {
|
10
|
+
|
11
|
+
var mySwiper = new Swiper('.gate-swiper' + i, {
|
12
|
+
|
13
|
+
loop: true,
|
14
|
+
|
15
|
+
autoplay: {
|
16
|
+
|
17
|
+
delay: 5000,
|
18
|
+
|
19
|
+
disableOnInteraction: false
|
20
|
+
|
21
|
+
},
|
22
|
+
|
23
|
+
slidesPerView: 1,
|
24
|
+
|
25
|
+
spaceBetween: 10,
|
26
|
+
|
27
|
+
centeredSlides: true,
|
28
|
+
|
29
|
+
pagination: {
|
30
|
+
|
31
|
+
el: '.sp-num' + i,
|
32
|
+
|
33
|
+
}
|
34
|
+
|
35
|
+
});
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
```
|