-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
33 lines (31 loc) · 1.01 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
const navHero = document.getElementById("navHero");
const hero = document.getElementById("hero");
const navAbout = document.getElementById("navAbout");
const about = document.getElementById("about");
const navIni = document.getElementById("navIni");
const initiatives = document.getElementById("initiatives");
const navDonate = document.getElementById("navDonate");
const donate = document.getElementById("donate");
navHero.addEventListener("click", () => hero.scrollIntoView());
navAbout.addEventListener("click", () => about.scrollIntoView());
navIni.addEventListener("click", () => initiatives.scrollIntoView());
navDonate.addEventListener("click", () => donate.scrollIntoView());
var swiper = new Swiper(".swiper-container", {
effect: "coverflow",
grabCursor: true,
centeredSlides: true,
slidesPerView: "auto",
autoplay: {
delay: 2500,
},
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows: true,
},
pagination: {
el: ".swiper-pagination",
},
});