-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (64 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Card Game</title>
<link rel="stylesheet" href="/reset.css">
<style>
html, body {
margin: 0;
padding: 0;
display: flex;
width: 100vw;
height: 100vh;
overflow: hidden;
background-color: black;
image-rendering: pixelated;
}
canvas {
margin: auto;
display: block;
width: 100%;
height: 100%;
background-color: black;
z-index: 1;
}
body {
cursor: url(textures/pointer1.png), auto;
animation: animated_cursor 500ms infinite;
}
body:active {
cursor: url(textures/pointer-active1.png), auto;
animation: animated_cursor_active 500ms infinite;
}
@keyframes animated_cursor {
0% {
cursor: url(textures/pointer1.png), auto;
}
33.33% {
cursor: url(textures/pointer2.png), auto;
}
66.66% {
cursor: url(textures/pointer3.png), auto;
}
}
@keyframes animated_cursor_active {
0% {
cursor: url(textures/pointer-active1.png), auto;
}
33.33% {
cursor: url(textures/pointer-active2.png), auto;
}
66.66% {
cursor: url(textures/pointer-active3.png), auto;
}
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Short+Stack&display=swap" rel="stylesheet">
</head>
<body>
<script type="module" src='/src/main.ts'></script>
</body>
</html>