-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
40 lines (34 loc) · 1001 Bytes
/
example.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<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>Webrouk back to top with scroll indicator Component</title>
<style>
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
height: 300vh;
background-color: hsl(225, 6%, 22%);
padding: 50px;
margin: 0;
}
webrouk-back-top-scroll-indicator {
/* Expected variables from inside the component (optional) */
--w-primary-color: 218, 95%, 54%; /* HSL color values without the brackets */
--w-diameter-size: 46px;
}
</style>
</head>
<body>
<webrouk-back-top-scroll-indicator
title="Back to Top"
show-at="50">
</webrouk-back-top-scroll-indicator>
<!-- webrouk-back-top-scroll-indicator component file -->
<script src="webrouk-back-top-scroll-indicator.js"></script>
</body>
</html>