Skip to content

Commit 0f36924

Browse files
Merge pull request VincentGarreau#13 from VincentGarreau/dev
release 1.0.1
2 parents 41cc87e + 6b28ee7 commit 0f36924

File tree

3 files changed

+520
-491
lines changed

3 files changed

+520
-491
lines changed

demo/js/app.js

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,49 @@
66

77
/* config dom id (optional) + config particles params */
88
particlesJS('particles-js', {
9-
canvas: {
10-
color_hex_bg: '#15414e',
11-
opacity: 1
12-
},
13-
particles: {
14-
color_hex: '#fff',
15-
opacity: 1,
16-
size: 2.5,
17-
size_random: true,
18-
nb: 200,
19-
anim: {
20-
speed: 2
21-
}
22-
},
23-
retina_detect: true
9+
particles: {
10+
color: '#fff',
11+
shape: 'circle', // "circle", "edge" or "triangle"
12+
opacity: .5,
13+
size: 2,
14+
size_random: true,
15+
nb: 100,
16+
line_linked: {
17+
enable_auto: true,
18+
distance: 100,
19+
color: '#fff',
20+
opacity: 1,
21+
width: 1,
22+
condensed_mode: {
23+
enable: false,
24+
rotateX: 600,
25+
rotateY: 600
26+
}
27+
},
28+
anim: {
29+
enable: true,
30+
speed: 2
31+
}
32+
},
33+
interactivity: {
34+
enable: true,
35+
mouse: {
36+
distance: 250
37+
},
38+
detect_on: 'canvas', // "canvas" or "window"
39+
mode: 'grab',
40+
line_linked: {
41+
opacity: .5
42+
},
43+
events: {
44+
onclick: {
45+
push_particles: {
46+
enable: true,
47+
nb: 4
48+
}
49+
}
50+
}
51+
},
52+
/* Retina Display Support */
53+
retina_detect: true
2454
});

0 commit comments

Comments
 (0)