-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
70 lines (60 loc) · 1.82 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>
<head>
<meta charset="UTF-8">
<title>Audio Visualizer</title>
<script src="script.js" type="text/javascript"></script>
<style>
body{
margin: 0;
padding: 0;
}
html, body{
overflow: hidden;
}
.button {
display: inline-block;
border-radius: 4px;
background-color: #464f0e;
border: none;
color: #FFFFFF;
font-size: 28px;
transition: all 0.5s;
cursor: pointer;
position: absolute;
top: 50%;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
.wrapper {
text-align: center;
}
</style>
</head>
<body bgcolor="#464f0e">
<div class="wrapper">
<button onclick="visualize()" class="button" style="vertical-align:middle" id="play"><span>Play</span></button>
</div>
<canvas id="canvas">
</canvas>
</body>
</html>