-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
53 lines (53 loc) · 1.24 KB
/
script.js
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
// Move the background by changing the mouse position
let container = document.getElementById('particles-js');
/*Particle script*/
particlesJS('particles-js', {
'particles': {
'number': {
'value': 25,
'density': {
'enable': true,
'value_area': 300
}
},
'color': {value: ['#01ffbb', '#d72323', '#fff'] /*Stars color*/},
'shape': {
'type': 'star',
},
'opacity': {
'value': 0.7,
'random': true,
},
'size': {
'value': 1,
'random': true,
},
'line_linked': {
'enable': false,
},
},
'interactivity': {
'detect_on': 'canvas',
'events': {
'onhover': {
'enable': true,
'mode': 'bubble'
},
'onclick': {
'enable': true,
'mode': 'push'
},
'resize': true
},
modes: {
bubble: {
distance: 50,
size: 2,
duration: 2,
opacity: 2,
speed: 3
},
}
},
'retina_detect': true
});