-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (38 loc) · 983 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<title>glitch-text Demo</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
* {
box-sizing: border-box;
margin: 0;
}
body {
font-family: system-ui;
}
</style>
<script type="module">
import GlitchText from "./glitch-text.js";
</script>
</head>
<body>
<main>
<h1>This headline has <glitch-text>glitch text</glitch-text> in it.</h1>
<p>
You can use <glitch-text>inline in a paragraph</glitch-text> if you want
to.
</p>
<p>
What about <a href="#"><glitch-text>in a link</glitch-text></a
>? Yeah, that too.
</p>
<p>
Glitch text can have
<glitch-text data-text="hello world">different text in it</glitch-text>.
That one uses the <code>data-text</code> attribute.
</p>
</main>
</body>
</html>