-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 942 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>Particles</title>
<script src="particle-storm.js"></script>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
color: #fff;
background-color: #161618;
overflow: hidden;
}
body:hover #controls {
opacity: 0.8;
}
#controls {
position: absolute;
top: 0;
padding: 1em;
opacity: 0;
transition: all 200ms;
}
canvas {
height: 100%;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="controls">
Click anywhere to spawn new particles<br /><br />
Wire length:<br />
<input type="range" value="400" max="700" min="0" id="wire-length" />
</div>
</body>
</html>