-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis-test.html
39 lines (34 loc) · 873 Bytes
/
vis-test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TEST</title>
<style>
svg {
width: 100%;
margin: 150px 0 -150px 0;
transform: scaleY(0);
transform-origin: top;
transition: 0.2s;
}
svg.done {
transform: scaleY(-1);
}
</style>
</head>
<body>
<svg id="wave">
<defs>
<linearGradient id="progress-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="40%" style="stop-color:#aaa" />
<stop offset="40%" style="stop-color:#eee" />
</linearGradient>
</defs>
<clipPath id="clip"></clipPath>
<rect width="100%" height="100%" id="progress" clip-path="url(#clip)" fill="url(#progress-gradient)"></rect>
</svg>
<input type="file" onchange="loadFile(this);">
<script src="src/player/visualizer.js"></script>
</body>
</html>