-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
62 lines (55 loc) · 730 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
50
51
52
53
54
55
56
57
58
59
60
61
62
// So, we create a timeline tl, which allows us to chain together multiple animations
const tl = gsap.timeline({ defaults: { ease: "power1.out" } });
tl.to(".lightCyan-slider", {
x: "-10%",
duration: 1,
});
tl.to(
".persianGreen-slider",
{
x: "-20%",
duration: 1.5,
},
"-=1"
);
tl.to(
".white-slider",
{
x: "-30%",
duration: 1.5,
},
"-=1"
);
tl.to(".hide", {
x: "0%",
duration: 2,
opacity: 1,
});
tl.to(".preloader", {
x: "200%",
duration: 3,
});
tl.fromTo(
"nav",
{
opacity: 0,
},
{
opacity: 1,
duration: 1,
},
"-=2"
);
tl.fromTo(
".hero-content",
{
opacity: 0,
y: -20,
},
{
opacity: 1,
duration: 1,
y: 0,
},
"-=1.5"
);