-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
104 lines (100 loc) · 2.12 KB
/
style.css
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body, .box {
width: 100%;
height: 100%;
background: #2a2a2a;
}
.box {
display: flex;
justify-content: center;
align-items: center;
filter: blur(5px) contrast(10);
mix-blend-mode: screen;
}
.visualizer {
position: relative;
width: 300px;
height: 300px;
border-radius: 50%;
background: #fff;
transition: .5s;
transform: rotateZ(180deg);
}
.play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
background: #2a2a2a;
border-radius: 50%;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
}
.btn-play {
border-left: 80px solid #5f5;
border-bottom: 50px solid transparent;
border-top: 50px solid transparent;
cursor: pointer;
}
.btn-pause {
border-right: 20px solid #5f5;
border-left: 20px solid #5f5;
width: 75px;
height: 100px;
cursor: pointer;
}
/* The basic shape of the microphone */
.btn-mic {
width: 60px;
height: 100px;
background-color: #5f5;
border-radius: 30px 30px 0 0;
position: relative;
cursor: pointer;
}
/* The bottom circular stand of the microphone */
.btn-mic::before {
content: "";
width: 40px;
height: 20px;
background-color: #5f5;
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
}
/* A horizontal line that represents the microphone's off state (microphone with a strikethrough) */
.btn-mic-off::after {
content: "";
width: 110%;
height: 8px;
background-color: #f00;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
}
.element {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: inline-block;
width: 50px;
height: 50px;
border-radius: 10px;
border-top: 40px solid #fff;
border-right: 20px solid transparent;
border-left: 20px solid transparent;
transform-origin: top left;
transition: .25s;
}