-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParticles.tsx
55 lines (54 loc) · 1.12 KB
/
Particles.tsx
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
import Particles from "react-particles-js";
export default function ParticleCandy() {
return (
<Particles
params={{
particles: {
number: {
value: 160,
density: {
enable: true,
},
},
size: {
value: 3,
random: true,
anim: {
speed: 2,
size_min: 0.3,
},
},
line_linked: {
enable: true,
opacity: 0.02,
},
move: {
random: true,
speed: 0.25,
direction: "top",
out_mode: "out",
},
shadow: {
enable: true,
color: "#DC143C",
blur: 1,
},
},
// interactivity: {
// events: {
// onhover: {
// enable: true,
// mode: "bubble",
// },
// },
// modes: {
// bubble: {
// size: 6,
// distance: 40,
// },
// },
// },
}}
/>
);
}