-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswiper.js
More file actions
125 lines (123 loc) · 2.47 KB
/
Copy pathswiper.js
File metadata and controls
125 lines (123 loc) · 2.47 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".recipient-tes", {
loop: true,
slidesPerView: 5,
spaceBetween: 4,
navigation: {
clickable: true,
nextEl: ".button-lo-next",
prevEl: ".button-lo-prev",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
// autoplay: {
// delay: 3000,
// },
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".banner-tes", {
speed: 1000,
parallax: true,
slidesPerView: 1.2,
spaceBetween: 16,
loop: true,
navigation: {
clickable: true,
nextEl: ".button-lo-next",
prevEl: ".button-lo-prev",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
breakpoints: {
1024: {
slidesPerView: 4,
},
768: {
slidesPerView: 3,
},
500: {
slidesPerView: 2,
},
},
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".brand-tes", {
loop: true,
slidesPerView: 4,
spaceBetween: 8,
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".tes-gift", {
loop: true,
slidesPerView: 2.2,
spaceBetween: 16,
speed: 1000,
breakpoints: {
1024: {
slidesPerView: 5,
},
768: {
slidesPerView: 4,
},
500: {
slidesPerView: 3,
},
},
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".tes-food", {
slidesPerView: 2,
spaceBetween: 16,
speed: 1000,
loop: true,
breakpoints: {
1024: {
slidesPerView: 5,
},
768: {
slidesPerView: 4,
},
500: {
slidesPerView: 2.2,
},
},
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".tes-noti", {
loop:false,
slidesPerView: "auto",
spaceBetween: 8,
speed: 1000,
});
}
if ($("div").hasClass("swiper-container")) {
var swiper = new Swiper(".tes-gift-2", {
loop: true,
slidesPerView: 1.5,
spaceBetween: 16.5,
pagination: {
el: ".swiper-pagination",
clickable: true,
},
breakpoints: {
1024: {
slidesPerView: 4.2,
},
768: {
slidesPerView: 3.2,
},
500: {
slidesPerView: 2.2,
},
},
});
}