-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
70 lines (60 loc) · 1.36 KB
/
index.js
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
let left = document.querySelector(".all-coffee .left")
let right = document.querySelector(".all-coffee .right")
let allCoffee = document.querySelector(".all-coffee")
let ss= document.querySelector(".all-coffee div")
window.onload=function (){
if (window.innerWidth < 1200) {
right.removeAttribute("data-aos")
left.removeAttribute("data-aos")
}
}
/*======Swiper=====*/
var swiper = new Swiper(".content", {
slidesPerView: 3,
spaceBetween: 25,
loop: true,
centerSlide: 'true',
fade: 'true',
grabCursor: 'true',
pagination: {
el: ".swiper-pagination",
clickable: true,
dynamicBullets: true,
},
autoplay: {
delay: 3000,
},
breakpoints:{
0: {
slidesPerView: 1,
},
992: {
slidesPerView: 2,
},
1001: {
slidesPerView: 2,
},
1400:{
slidesPerView: 3,
}
},
});
var swiper = new Swiper('.testmonials', {
effect: 'coverflow',
grabCursor: true,
centeredSlides: true,
slidesPerView: 'auto',
//watchOverflow: true,
loop: true,
coverflowEffect: {
rotate: -2,
stretch: 5,
depth: 180,
modifier: 1,
slideShadows : true,
},
pagination: {
//el: '.swiper-pagination',
//type: 'fraction',
},
});