Pulse animation option for voice record button
This commit is contained in:
parent
2fb241cfc2
commit
e77d3bea04
3 changed files with 28 additions and 5 deletions
|
@ -53,7 +53,9 @@ limitations under the License.
|
|||
font-size: $font-14px;
|
||||
|
||||
&::before {
|
||||
// TODO: @@ TravisR: Animate
|
||||
// Pulsing animation
|
||||
animation: recording-pulse 1.5s infinite;
|
||||
|
||||
content: '';
|
||||
background-color: $voice-record-live-circle-color;
|
||||
width: 10px;
|
||||
|
@ -74,3 +76,21 @@ limitations under the License.
|
|||
width: 42px; // we're not using a monospace font, so fake it
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes recording-pulse {
|
||||
// Source: https://codepen.io/FlorinPop17/pen/drJJzK
|
||||
// Same source: https://www.florin-pop.com/blog/2019/03/css-pulse-effect/
|
||||
|
||||
0% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 $voice-record-live-circle-color;
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 6px transparent;
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue