-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
49 lines (35 loc) · 983 Bytes
/
app.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 scroll = new LocomotiveScroll({
el: document.querySelector('.wrapper'),
smooth: true
});
$("#toggle").click(function() {
$(this).toggleClass('on');
$("#resize").toggleClass("active");
});
$("#resize ul li a").click(function() {
$(this).toggleClass('on');
$("#resize").toggleClass("active");
});
$(".close-btn").click(function() {
$(this).toggleClass('on');
$("#resize").toggleClass("active");
});
document.addEventListener("DOMContentLoaded", function () {
const hero = document.querySelector(".hero");
const linksContainer = document.querySelector(".links");
hero.addEventListener("animationend", function () {
hero.classList.add("show-links");
});
});
TweenMax.from("#brand", 1, {
delay: 0.4,
y: 10,
opacity: 0,
ease: Expo.easeInOut
})
TweenMax.staggerFrom("#menu li a", 1, {
delay: 0.4,
opacity: 0,
ease: Expo.easeInOut
}, 0.1);
new WOW().init();