-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarousel.js
More file actions
65 lines (60 loc) · 1.42 KB
/
Copy pathcarousel.js
File metadata and controls
65 lines (60 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import Swiper, {Pagination} from 'swiper';
Swiper.use([ Pagination]);
import $ from 'jquery'
$(function () {
// debugger;
var mySwiper = new Swiper('.tcs-carousel--best-seller', {
pagination: {
el: '.swiper-pagination',
clickable: true,
},
slidesPerView: 1.15,
spaceBetween: 20,
breakpoints: {
768: {
slidesPerView: 2,
spaceBetween: 40
},
992: {
slidesPerView: 3,
spaceBetween: 40
}
}
})
var mySwiper = new Swiper('.tcs-carousel--warmth-slider', {
pagination: {
el: '.swiper-pagination',
clickable: true,
},
slidesPerView: 1.4,
spaceBetween: 20,
breakpoints: {
768: {
slidesPerView: 3,
spaceBetween: 40
},
992: {
slidesPerView: 5,
spaceBetween: 40
}
}
})
var mySwiper = new Swiper('.tcs-carousel--guides', {
pagination: {
el: '.swiper-pagination',
clickable: true,
},
slidesPerView: 1.15,
spaceBetween: 20,
breakpoints: {
768: {
slidesPerView: 2,
spaceBetween: 40
},
992: {
slidesPerView: 3,
spaceBetween: 40
}
}
})
})