Skip to content

Live Indicator

A copy-paste video player ui component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Video Player UIHTMLCSSany framework
LIVE2.4k

Copy into your project

HTML
<!-- Live Indicator — pulsing red dot, LIVE label, viewer count -->
<div class="nuda-livev">
  <span class="nuda-livev__dot"></span>
  <span class="nuda-livev__label">LIVE</span>
  <span class="nuda-livev__viewers">2.4k</span>
</div>
CSS
/* Live Indicator
   Translucent pill: pulsing dot, LIVE text, viewer count separator.
   Customize: --livev-color */

.nuda-livev {
  --livev-color: #ff4d4d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.nuda-livev__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--livev-color);
  box-shadow: 0 0 6px var(--livev-color);
}

.nuda-livev__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--livev-color);
  animation: nuda-livev-pulse 1.4s ease-out infinite;
}

.nuda-livev__label {
  font: 800 0.7rem ui-sans-serif, system-ui, sans-serif;
  color: #fff;
  letter-spacing: 0.08em;
}

.nuda-livev__viewers {
  font: 600 0.7rem ui-sans-serif, system-ui, sans-serif;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

@keyframes nuda-livev-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-livev__dot::after { animation: none; }
}

How to use Live Indicator

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.

More video player ui components

← Browse all NudaUI components