-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathindex.html
62 lines (56 loc) · 1.25 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 lang="en">
<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>Hello.</title>
<script src="./dist/bundle.js" defer></script>
<style>
:root {
font-family: Helvetica, sans-serif;
font-size: 20px;
--blur: 100;
--opacity: 0;
}
body {
padding: 0;
margin: 0;
}
.container {
height: 300vh;
}
.sticky {
font-size: 10rem;
font-weight: bold;
letter-spacing: -0.03em;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
position: sticky;
top: 0;
font-size: calc(var(--size) * 1em);
}
span {
opacity: var(--opacity);
}
</style>
</head>
<body>
<div
class="container"
tg-name="size"
tg-edge="inset"
tg-from="14"
tg-to="20"
tg-bezier="0.23, 1.5, 0.32, 2"
>
<div class="container" tg-name="opacity" tg-from="0" tg-to="1">
<div class="sticky">
<span>Hello.</span>
</div>
</div>
</div>
</body>
</html>