File tree Expand file tree Collapse file tree 3 files changed +520
-491
lines changed Expand file tree Collapse file tree 3 files changed +520
-491
lines changed Original file line number Diff line number Diff line change 6
6
7
7
/* config dom id (optional) + config particles params */
8
8
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
24
54
} ) ;
You can’t perform that action at this time.
0 commit comments