-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (46 loc) · 824 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
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>pixels</title>
</head>
<style>
html, body, * {
margin:0;
padding:0;
background-color:#000;
overflow:hidden;
height:100%;
width:100%;
}
#canvas {
margin:0;
padding:0;
background-color:#000;
width:100%;
height:100%;
}
.playButton {
width: 0;
height: 0;
border-top: 30px solid transparent;
border-left: 60px solid white;
border-right: 0px solid transparent;
border-bottom: 30px solid transparent;
position: absolute;
top: 50%;
transform: translateY(-15px) translateX(-30px);
left: 50%;
cursor: pointer;
}
.playButton.playing {
display: none;
}
</style>
<body>
<canvas id="canvas">
</canvas>
<div class="playButton"></div>
<script type="text/javascript" src="pixels.js"></script>
</body>
</html>