Live Streaming Avatar
A copy-paste avatars component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AvatarsHTMLCSSany framework
M
Copy into your project
HTML
<div class="nuda-av2-live" aria-label="Mia is live now">
<span class="nuda-av2-live__avatar" style="background:linear-gradient(135deg,#f97316,#ec4899)">M</span>
<span class="nuda-av2-live__ribbon" aria-hidden="true">
<span class="nuda-av2-live__dot"></span>
LIVE
</span>
</div>CSS
.nuda-av2-live {
position: relative;
display: inline-flex;
width: 60px;
height: 60px;
}
.nuda-av2-live__avatar {
width: 100%;
height: 100%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 700;
font-size: 16px;
border: 2px solid #ef4444;
box-shadow: 0 0 0 3px rgba(239,68,68,.25);
}
.nuda-av2-live__ribbon {
position: absolute;
left: 50%;
bottom: -6px;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 3px;
background: #ef4444;
color: #fff;
font-size: 9px;
font-weight: 800;
letter-spacing: .04em;
padding: 2px 6px;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(239,68,68,.4);
}
.nuda-av2-live__dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: #fff;
animation: _nuda-av2livedot 1.6s ease-in-out infinite;
}
@keyframes _nuda-av2livedot {
0%,100% {
opacity: 1;
}
50% {
opacity: .25;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-av2-live__dot {
animation: none;
opacity: 1;
}
}
How to use Live Streaming Avatar
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.