-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-particles-plain.html
56 lines (46 loc) · 1.31 KB
/
test-particles-plain.html
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
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Particles background</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/particles.min.js"></script>
<script>
window.onload = function() {
Particles.init({ options });
};
// e.g.
window.onload = function() {
Particles.init({
selector: '#mainCanvas',
maxParticles: 120, //default = 100
color: '#FFFFFF', // must use a 6 digits
sizeVariations: 4, // default = 3
speed: 0.1, // default = 0.58
minDistance: 50, // default = 120 // I suspect this acually may be maximum distance
connectParticles: true // default = false
});
};
</script>
<style>
html,
body {
margin: 0px;
background-color: #000000;
}
#myCanvas {
position: absolute;
display: block;
top: 0;
left: 0;
z-index: 0;
}
</style>
</head>
<body>
<h1 style="color:#FFFFFF; z-index: 1;">Something here</h1>
<canvas id="mainCanvas">
</canvas>
</body>
</html>
<!-- based on https://github.com/marcbruederlin/particles.js -->