-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (54 loc) · 2.56 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Demo | Floatr</title>
<link rel="stylesheet" href="styles/stylesheet.css" />
<link rel="shortcut icon" href="images/logo.png" />
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;700&display=swap" rel="stylesheet">
<script type="text/javascript" src="Floatr/lib.js"></script>
<script type="text/javascript" src="Floatr/demo.js"></script>
</head>
<body>
<div id="demo-particleSpace"></div>
<div class="demo-controller">
<h1>Demo Controller</h1>
<h3>Count</h3> <h4 id="demo_CountVal">60</h4> <input id="demo_Count" type="range" min="1" max="100" value="60">
<h3>Gravity</h3> <h4 id="demo_GravityVal">0.05</h4> <input id="demo_Gravity" type="range" min="1" max="100" value="50">
<h3>Speed</h3> <h4 id="demo_SpeedVal">0.08</h4> <input id="demo_Speed" type="range" min="1" max="100" value="80">
<h3>Max Size</h3> <h4 id="demo_SizeVal">1</h4> <input id="demo_Size" type="range" min="1" max="10" value="1">
<h3>Variance</h3> <h4 id="demo_VarianceVal">50</h4> <input id="demo_Variance" type="range" min="1" max="100" value="50">
</div>
<div class="demo-content">
<h1>Floatr <span class="floatr-logo"></span></h1>
<p>This is a demo page showcasing the <b>Floatr</b> library. Create randomly placed particles to compliment backgrounds, add flare to a page, and much more.</p>
<div class="credits">
<span class="code">< / ></span>
<a href="https://github.com/FFFFFF-base16/Floatr">FFFFFF-base16</a>
<img src="images/github.png" height="15"/>
</div>
</div>
<div class="demo-moon">
<div class="ring1"></div>
<div class="ring2"></div>
<div class="ring3"></div>
<div class="ring4"></div>
<div class="ring5"></div>
<div class="ring6"></div>
</div>
</body>
<script type="text/javascript">
//A Floatr container can be initiated in just the following 3 steps:
var floatrSettings = {
'width' : 'inherit',
'height' : 'inherit',
'count' : 60,
'gravity' : 0.050,
'speed' : 0.08,
'maxSize' : 1,
'variance' : 50,
}
const particles = new Floatr('demo-particleSpace', floatrSettings);
particles.Render();
</script>
</html>