-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.js
More file actions
57 lines (51 loc) · 852 Bytes
/
main.js
File metadata and controls
57 lines (51 loc) · 852 Bytes
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
anime({
targets: '.nav .icon i',
translateX: [100, 0],
duration: 1200,
opacity: [0, 1],
delay: (el, i) => {
return 300 + 100 * i;
},
})
anime({
targets: '.nav .icon p',
duration: 1200,
opacity: [0, 1],
delay: 700
})
anime({
targets: '.live .person',
translateY: [100, 0],
duration: 1200,
delay: (el, i) => {
return 1000 + 100 * i;
},
})
anime({
targets: '.like i',
easing: 'easeOutExpo',
scale: [2, 1],
opacity: [0, 1],
delay: 1200
})
anime({
targets: '.comment i',
easing: 'easeOutExpo',
scale: [2, 1],
opacity: [0, 1],
delay: 1300
})
anime({
targets: '.share i',
easing: 'easeOutExpo',
scale: [2, 1],
opacity: [0, 1],
delay: 1400
})
anime({
targets: '.newsfeed .card',
translateY: [300, 0],
easing: 'easeOutExpo',
opacity: [0, 1],
delay: (el, i) => 700 + 300 * i
})