@moonshine-ai/moonshine-js
Version:
On-device speech-to-text and voice control for web applications with Moonshine.
55 lines (48 loc) • 1.06 kB
CSS
.moonshine-container {
position: relative;
display: inline-block;
width: 100%;
overflow: hidden;
}
.moonshine-button {
position: absolute;
max-width: 32px;
max-height: 32px;
top: 0;
right: 0;
cursor: pointer;
}
@keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
*[data-moonshine-loading] svg {
animation: loading 2s linear infinite;
transform-origin: 50% 50%;
}
@keyframes transcribing {
from {
transform: translateY(0);
}
25% {
transform: translateY(-5%);
}
50%, 100% {
transform: translateY(0);
}
}
*[data-moonshine-transcribing] .moonshine-transcribe-1 {
animation: transcribing 0.75s linear infinite;
}
*[data-moonshine-transcribing] .moonshine-transcribe-2 {
animation: transcribing 0.75s linear infinite;
animation-delay: 0.25s;
}
*[data-moonshine-transcribing] .moonshine-transcribe-3 {
animation: transcribing 0.75s linear infinite;
animation-delay: 0.5s;
}