-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
57 lines (46 loc) · 1.17 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
var imageIndex = 0;
var imagesArray = [
"url('images/R.jpg') center",
"url('images/wallpaperflare.com_wallpaper.jpg') center"
];
function changeBackground() {
var index = imageIndex++ % imagesArray.length;
document.querySelector(".main-body-section-div").style.background = imagesArray[index];
}
document.addEventListener("DOMContentLoaded", function() {
document.querySelector(".main-body-section-div").style.background = imagesArray[0];
setInterval(changeBackground, 2000);
});
var swiper = new Swiper(".mySwiper", {
effect: "cube",
grabCursor: true,
autoplay: {
delay: 3500,
disableOnInteraction: false,
},
cubeEffect: {
shadow: true,
slideShadows: true,
shadowOffset: 20,
shadowScale: 0.94,
},
pagination: {
el: ".swiper-pagination",
},
});
new PureCounter();
new PureCounter({
selector: ".purecounter",
start: 0,
end: 100,
duration: 5,
delay: 10,
once: true,
pulse: false,
decimals: 0,
legacy: true,
filesizing: false,
currency: false,
formater: "us-US",
separator: false,
});