-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
78 lines (78 loc) · 2.04 KB
/
popup.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
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YouTube Volume Transition</title>
<link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet">
<style>
body, h1, h2 {
font-family: 'Patrick Hand', cursive; /* Using Patrick Hand */
}
body {
width: 240px;
text-align: center;
background-color: #000;
padding: 8px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 22px;
margin-bottom: 6px;
color: #FFF;
}
h2 {
font-size: 14px;
margin-bottom: 15px;
color: #FFF;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 25px;
}
.switch input {
display: none;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #888;
transition: .4s;
border-radius: 12.5px;
}
.slider:before {
position: absolute;
content: "";
height: 19px;
width: 19px;
left: 3px;
bottom: 3px;
background-color: #FFF;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #FFF;
}
input:checked + .slider:before {
transform: translateX(25px);
background-color: #888;
}
</style>
</head>
<body>
<h1>YouTube Volume Transition</h1>
<h2>SWITCH SONGS SMOOTHLY!</h2>
<label class="switch">
<input type="checkbox" id="toggleBtn">
<span class="slider"></span>
</label>
<script src="popup.js"></script>
</body>
</html>