-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscript.js
54 lines (47 loc) · 945 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
50
51
52
53
54
const navLink = document.querySelectorAll('.nav_link');
function linkAct() {
navLink.forEach(n => n.classList.remove('active'));
this.classList.add('active');
}
navLink.forEach(n => n.addEventListener('click', linkAct));
//Left-Menu
TweenMax.from('.left_menu', 1, {
delay:2.5,
opacity:0,
x:-50,
ease:Expo.easeInOut
})
//Nav - Links
TweenMax.from('.nav_links_content ul li', 1, {
delay:3.5,
opacity:0,
x:100,
ease:Expo.easeInOut
}, 0.08)
//Search Icon
TweenMax.from('.search_icon', 1, {
delay:2.5,
opacity:0,
x:-50,
ease:Expo.easeInOut
})
//Large Text
TweenMax.from('.larger_text_content', 1, {
delay:4,
opacity:0,
y:-100,
ease:Expo.easeInOut
})
//Description Content
TweenMax.from('.desc_content', 1, {
delay:4.5,
opacity:0,
x:100,
ease:Expo.easeInOut
})
//Overlay
TweenMax.to('.overlay', 2, {
delay:1,
top:"-100%",
ease:Expo.easeInOut
})