-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·71 lines (71 loc) · 1.69 KB
/
Copy pathindex.html
File metadata and controls
executable file
·71 lines (71 loc) · 1.69 KB
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
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, interactive-widget=resizes-content, shrink-to-fit=0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta property="og:title" content="Flow - ThreeJS WebGPU Experiment" />
<meta property="og:image" content="/cover.png" />
<title>Flow - ThreeJS WebGPU Experiment</title>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
position: relative;
overflow: hidden;
}
#container {
width: 100%;
height: 100%;
display: block;
}
#veil {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
opacity: 1;
pointer-events: none;
transition: opacity 1s ease-in-out;
}
#progress-bar {
position: absolute;
width: 200px;
height: 5px;
left: 50vw;
top: 50vh;
transition: opacity 0.2s ease;
transform: translateX(-50%) translateY(-50%);
background-color: #333;
}
#progress {
position: absolute;
width: 0px;
height: 5px;
left: 0px;
top: 0px;
transition: width 0.2s ease;
background-color: #848484;
}
#error {
position: absolute;
left: 50vw;
top: 50vh;
transform: translateX(-50%) translateY(-50%);
color: #FFFFFF;
visibility: hidden;
}
</style>
</head>
<body>
<div id="container">
<div id="veil">
<div id="progress-bar"><div id="progress"></div></div>
<div id="error"></div>
</div>
<script src="./index.js" type="module"></script>
</body>
</html>