-
Notifications
You must be signed in to change notification settings - Fork 0
/
mic.css
57 lines (52 loc) · 982 Bytes
/
mic.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
:root {
--mic-color: #425066;
--mic-size: 35px;
}
#audio-container {
width: 100%;
height: var(--mic-size);
position: relative;
}
.fa {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.mic {
color: #fff;
text-align: center;
font-size: 18px;
white-space: nowrap;
border: none;
padding: 0;
border-radius: 100%;
width: var(--mic-size);
height: var(--mic-size);
position: absolute;
top: 0;
left: 0;
right: 0;
background: var(--mic-color);
margin-left: auto;
margin-right: auto;
}
.mic-overlay {
z-index: 9;
width: var(--mic-size);
height: var(--mic-size);
border: 2px solid var(--mic-color);
border-radius: 100%;
top: -2px;
background: transparent;
animation: pulsate infinite 1.5s;
}
@keyframes pulsate {
0% {
transform: scale(0.9, 0.9);
opacity: 1;
}
100% {
transform: scale(1.2, 1.2);
opacity: 0;
}
}