-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.03 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Particle.js proj</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
body {
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background-color: dodgerblue;
}
#particles-js {
width: 100vw;
height: 100vh;
z-index: 2;
}
h1 {
z-index: 1;
position: absolute;
font-size: 6vw;
font-family: "Press Start 2P";
text-align: center;
}
</style>
</head>
<body>
<h1>
Particle.js<br />
Example
</h1>
<div id="particles-js"></div>
<script src="particles.js"></script>
<script>
particlesJS.load("particles-js", "particles.json");
</script>
</body>
</html>