-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
73 lines (64 loc) · 1.89 KB
/
notes.txt
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
<div className="h-screen w-full">
<div className="relative flex justify-center items-center w-[290px] h-full flex-col draw">
<div className="w-full py-1 line">
<div className="h-2 w-2 rounded-full absolute"></div>
<div
data-x="170"
className="h-2 w-2 rounded-full bg-[#FFF] el"
></div>
</div>
<div className="w-full py-1 line">
<div className="h-2 w-2 rounded-full absolute"></div>
<div
data-x="80"
className="h-2 w-2 rounded-full bg-[#FFF] el"
></div>
</div>
<div className="w-full py-1 line">
<div className="h-2 w-2 rounded-full absolute"></div>
<div
data-x="270"
className="h-2 w-2 rounded-full bg-[#FFF] el"
></div>
</div>
<div className="w-full py-1 line">
<div className="h-2 w-2 rounded-full absolute"></div>
<div
data-x="370"
className="h-2 w-2 rounded-full bg-[#FFF] el"
></div>
</div>
</div>
</div>
anime({
targets: ".draw .el",
translateX: function (el) {
return el.getAttribute("data-x");
},
translateY: function (el, i) {
return 50 + -50 * i;
},
scale: function (el, i, l) {
return l - i + 5;
},
rotate: function () {
return anime.random(-360, 360);
},
borderRadius: function () {
return ["50%", "35%"];
},
duration: function () {
return anime.random(1200, 1800);
},
delay: function () {
return anime.random(2000, 400);
},
direction: "alternate",
loop: true,
endDelay: 2000,
});
translateX = {anime.stagger(10, {grid: [14, 5], from: 'center', axis: 'x'})}
translateY = {anime.stagger(10, {grid: [14, 5], from: 'center', axis: 'y'})}
rotateZ = {anime.stagger([0, 90], {grid: [14, 5], from: 'center', axis: 'x'})}
delay = {anime.stagger(200, {grid: [14, 5], from: 'center'})}
easing = {'easeInOutQuad'}