-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (50 loc) · 1.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Three.js Things</title>
<style>
*, ::after, ::before {
box-sizing: border-box;
}
body {
margin: 0;
overscroll-behavior: none;
}
.container {
width: 100vw;
height: 100vh;
position: relative;
}
canvas {
display: block;
width: 100%;
height: 100%;
}
.scroll {
font-size: 1rem;
position: absolute;
bottom: 2rem;
right: 2rem;
color: rgba(255, 255, 255, 0.4);
width: 100px;
height: 100px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.4);
display: flex;
justify-content: center;
align-items: center;
z-index: 9;
}
</style>
</head>
<body>
<div class="container">
<div class="scroll">
Scroll
</div>
</div>
<script src="app.js"></script>
</body>
</html>