-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
110 lines (102 loc) · 2.08 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
103
104
105
106
107
108
109
// Intro JS
anime.timeline({loop: true})
.add({
targets: '.ml8 .circle-white',
scale: [0, 3],
opacity: [1, 0],
easing: "easeInOutExpo",
rotateZ: 360,
duration: 1100
}).add({
targets: '.ml8 .circle-container',
scale: [0, 1],
duration: 1100,
easing: "easeInOutExpo",
offset: '-=1000'
}).add({
targets: '.ml8 .circle-dark',
scale: [0, 1],
duration: 1100,
easing: "easeOutExpo",
offset: '-=600'
}).add({
targets: '.ml8 .letters-left',
scale: [0, 1],
duration: 1200,
offset: '-=550'
}).add({
targets: '.ml8 .bang',
scale: [0, 1],
rotateZ: [45, 15],
duration: 1200,
offset: '-=1000'
}).add({
targets: '.ml8',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1400
});
anime({
targets: '.ml8 .circle-dark-dashed',
rotateZ: 360,
duration: 8000,
easing: "linear",
loop: true
});
// Intro JS ends
anime.timeline({loop: true})
.add({
targets: '.ml15 .word',
scale: [14,1],
opacity: [0,1],
easing: "easeOutCirc",
duration: 800,
delay: (el, i) => 800 * i
}).add({
targets: '.ml15',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1000
});
anime.timeline({loop: true})
.add({
targets: '.ml5 .line',
opacity: [0.5,1],
scaleX: [0, 1],
easing: "easeInOutExpo",
duration: 700
}).add({
targets: '.ml5 .line',
duration: 600,
easing: "easeOutExpo",
translateY: (el, i) => (-0.625 + 0.625*2*i) + "em"
}).add({
targets: '.ml5 .ampersand',
opacity: [0,1],
scaleY: [0.5, 1],
easing: "easeOutExpo",
duration: 600,
offset: '-=600'
}).add({
targets: '.ml5 .letters-left',
opacity: [0,1],
translateX: ["0.5em", 0],
easing: "easeOutExpo",
duration: 600,
offset: '-=300'
}).add({
targets: '.ml5 .letters-right',
opacity: [0,1],
translateX: ["-0.5em", 0],
easing: "easeOutExpo",
duration: 600,
offset: '-=600'
}).add({
targets: '.ml5',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1000
});