forked from raza-abbas-23sw/HultPrize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
49 lines (46 loc) · 802 Bytes
/
script.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
const navLinks = document.querySelectorAll('.nav-link');
navLinks.forEach(link => {
link.addEventListener('click', () => {
navLinks.forEach(nav =>
{nav.classList.remove('activ')
});
link.classList.add('activ');
});
});
gsap.from(".col-md-4",{
y:20,
opacity:0,
duration:1,
// stagger:1
})
gsap.from(".hult-section img",{
y:70,
opacity:0,
duration:1,
// delay:1
// stagger:1
})
gsap.from(".hult-content",{
y:-70,
opacity:0,
duration:1,
// delay:1
// stagger:1
})
gsap.from("#home h2, #home h1",{
scale:0,
delay:1,
stagger:.5
// opacity:0,
// duration:1,
// delay:1
// stagger:1
})
gsap.from(".achievement-box",{
y:10,
scale:0,
opacity:0,
duration:.3,
// delay:1
stagger:1
})