-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
78 lines (78 loc) · 2.01 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!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>Document</title>
<style>
section {
background-color: red;
height: 200px;
width: 200px;
}
</style>
<link href="stylesheet" href="/css/ball.css" />
<script src="./index.js" type="module"></script>
</head>
<body>
<section>
<floating-random-element animation-speed="0.25" animation-enabled="true">
<div style="position: relative">
<div
style="position: absolute; top: 0; left: 0; bottom: 0; right: 0"
></div>
<p>aaa</p>
</div>
</floating-random-element>
</section>
<section>
<typing-element animation-speed="0.1" animation-enabled="true">
<div>
<h1>Hello!</h1>
<strong>People</strong>
<ul>
<li>Hello</li>
<li>I am</li>
<li>A list</li>
</ul>
</div>
</typing-element>
</section>
<section>
<bouncing-ball
color="green"
radius="20"
animation-speed="0.1"
animation-enabled="true"
>
<div></div>
</bouncing-ball>
</section>
<div style="margin-top: 20px">
<progress-bar-element
progress="80%"
animation-speed="0.25"
animation-enabled="true"
variant="candystriped"
></progress-bar-element>
</div>
<div style="margin-top: 20px">
<progress-bar-element
progress="80%"
animation-speed="0.25"
animation-enabled="true"
variant="shiny"
></progress-bar-element>
</div>
<script>
window.addEventListener("load", () => {
document
.querySelector("floating-random-element")
.addClonableEventListener("clone", (e) => {
console.log(e.detail);
});
});
</script>
</body>
</html>