forked from johnggli/linktree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground.html
More file actions
67 lines (61 loc) · 1.77 KB
/
background.html
File metadata and controls
67 lines (61 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#442222">
<title>Meio-Orc Background</title>
<!-- Preload dice images -->
<link rel="preload" href="assets/dices/d4.png" as="image">
<link rel="preload" href="assets/dices/d6.png" as="image">
<link rel="preload" href="assets/dices/d8.png" as="image">
<link rel="preload" href="assets/dices/d10.png" as="image">
<link rel="preload" href="assets/dices/d12.png" as="image">
<link rel="preload" href="assets/dices/d20.png" as="image">
<style>
:root {
--bgColor: #442222;
--bgColor2: #090a0f;
--delay: .3s;
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
background: radial-gradient(ellipse at bottom, var(--bgColor) 0%, var(--bgColor2) 100%);
opacity: 0;
animation: 1s ease-out var(--delay) 1 transitionAnimation;
animation-fill-mode: forwards;
overflow: hidden;
}
@keyframes transitionAnimation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
#diceCanvas {
display: block;
width: 100%;
height: 100%;
filter: hue-rotate(250deg) saturate(1.2) brightness(1.1);
}
</style>
</head>
<body>
<div class="background">
<canvas id="diceCanvas" data-dice-count="20"></canvas>
</div>
<script src="assets/dice-animation.js"></script>
</body>
</html>