Skip to content

Commit 0153b7c

Browse files
Add Particles.js configuration in script.js
This file contains the configuration for Particles.js, defining particle properties and interactivity settings.
1 parent b89d3d7 commit 0153b7c

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

script.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* Particles.js configuration */
2+
particlesJS("particles-js", {
3+
"particles": {
4+
"number": {
5+
"value": 80,
6+
"density": { "enable": true, "value_area": 800 }
7+
},
8+
"color": { "value": "#ffffff" },
9+
"shape": {
10+
"type": "circle",
11+
"stroke": { "width": 0, "color": "#000000" }
12+
},
13+
"opacity": {
14+
"value": 0.5,
15+
"random": false
16+
},
17+
"size": {
18+
"value": 4,
19+
"random": true
20+
},
21+
"line_linked": {
22+
"enable": true,
23+
"distance": 150,
24+
"color": "#ffffff",
25+
"opacity": 0.3,
26+
"width": 1
27+
},
28+
"move": {
29+
"enable": true,
30+
"speed": 3,
31+
"direction": "none",
32+
"random": false,
33+
"straight": false,
34+
"out_mode": "out"
35+
}
36+
},
37+
"interactivity": {
38+
"detect_on": "canvas",
39+
"events": {
40+
"onhover": { "enable": true, "mode": "repulse" },
41+
"onclick": { "enable": true, "mode": "push" }
42+
},
43+
"modes": {
44+
"repulse": { "distance": 100 },
45+
"push": { "particles_nb": 4 }
46+
}
47+
},
48+
"retina_detect": true
49+
});

0 commit comments

Comments
 (0)