-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (44 loc) · 1.04 KB
/
Copy pathindex.html
File metadata and controls
45 lines (44 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>textstring</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #f5f0e8; touch-action: none; }
#container {
position: relative;
width: 100%;
max-width: 600px;
margin: 0 auto;
padding: 0 20px;
user-select: none;
-webkit-user-select: none;
}
.letter {
position: absolute;
top: 0; left: 0;
will-change: transform;
font-family: 'Georgia', serif;
font-size: 20px;
line-height: 1;
color: #4a4a4a;
pointer-events: none;
}
.letter.draggable {
pointer-events: auto;
cursor: grab;
z-index: 10;
touch-action: none;
}
.letter.dragging {
cursor: grabbing;
}
</style>
</head>
<body>
<div id="container"></div>
<script type="module" src="/main.ts"></script>
</body>
</html>