-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
102 lines (88 loc) · 1.4 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
const scroll = new LocomotiveScroll({
el: document.querySelector('#main'),
smooth: true
});
gsap.from("#a, #u, #a1",{
y: 1000,
// scale: 0,
// delay: -1,
duration: 1.5,
ease: "power4.Out",
})
gsap.from("#b, #z, #r",{
y: -1000,
// scale: 0,
// delay: -1,
duration: 1.5,
ease: "power4.Out",
})
gsap.to("#a,#b,#u,#z,#r,#a1",{
color: "#000",
delay: 2,
ease: "power4.Out",
})
gsap.to("#loader",{
backgroundColor: "#fff",
delay: 2,
ease: "power4.Out",
})
gsap.to("#a",{
scale: 0.5,
x:-152,
y:-41,
delay: 2.5
})
gsap.to("#b",{
scale: 0.5,
x:-292,
y:-41,
delay: 2.5
})
gsap.to("#u",{
scale: 0.5,
x:-422,
y:-41,
delay: 2.5
})
gsap.to("#z",{
scale: 0.5,
x:-552,
y:-41,
delay: 2.5
})
gsap.to("#a1",{
scale: 0.5,
x:-692,
y:-41,
delay: 2.5
})
gsap.to("#r",{
scale: 0.5,
x:-842,
y:-41,
delay: 2.5
})
gsap.to("#loader",{
delay: 3.2,
opacity: 0,
})
gsap.to("#loader",{
delay: 4,
display: "none",
})
gsap.from("#lastname",{
x: 1000,
delay: 3.5,
ease: "power3.out",
})
gsap.from("#page1-content h5",{
delay: 3.6,
y: 1000,
duration: 1.1,
})
gsap.to("#loader h1",{
opacity: 1,
duration: 1,
delay: 0.5,
})
locomotive()