Voice Activity Ring
A copy-paste avatars component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AvatarsHTMLCSSany framework
D
Copy into your project
HTML
<div class="nuda-av2-voice" aria-label="Dana is speaking">
<span class="nuda-av2-voice__ring" aria-hidden="true"></span>
<span class="nuda-av2-voice__avatar" style="background:linear-gradient(135deg,#34d399,#0ea5e9)">D</span>
<span class="nuda-av2-voice__mic" aria-hidden="true">
<i class="nuda-av2-voice__bar"></i>
<i class="nuda-av2-voice__bar"></i>
<i class="nuda-av2-voice__bar"></i>
</span>
</div>CSS
.nuda-av2-voice {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
}
.nuda-av2-voice__ring {
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid #e4ff54;
animation: _nuda-av2voicering 1.6s ease-out infinite;
will-change: transform,opacity;
}
.nuda-av2-voice__avatar {
position: relative;
z-index: 1;
width: 42px;
height: 42px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #052014;
font-weight: 700;
font-size: 15px;
}
.nuda-av2-voice__mic {
position: absolute;
z-index: 2;
right: -2px;
bottom: -2px;
display: flex;
align-items: flex-end;
gap: 2px;
height: 14px;
padding: 2px 4px;
border-radius: 7px;
background: #0a0a0a;
border: 1px solid rgba(255,255,255,.12);
}
.nuda-av2-voice__bar {
display: block;
width: 2.5px;
height: 4px;
border-radius: 1px;
background: #e4ff54;
transform-origin: bottom;
animation: _nuda-av2voicebars 1s ease-in-out infinite;
}
.nuda-av2-voice__bar:nth-child(2) {
animation-delay: .18s;
}
.nuda-av2-voice__bar:nth-child(3) {
animation-delay: .36s;
}
@keyframes _nuda-av2voicering {
0% {
transform: scale(.9);
opacity: .9;
}
100% {
transform: scale(1.35);
opacity: 0;
}
}
@keyframes _nuda-av2voicebars {
0%,100% {
transform: scaleY(.4);
}
50% {
transform: scaleY(1.6);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-av2-voice__ring {
animation: none;
opacity: .5;
transform: scale(1);
}
.nuda-av2-voice__bar {
animation: none;
transform: scaleY(1);
}
}
How to use Voice Activity Ring
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.