Skip to content

Live Edge Bar

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

Video Player UIHTMLCSSany framework
LIVE

Copy into your project

HTML
<!-- Live Edge Bar — pulsing LIVE pill, full track with a bright live-edge marker -->
<div class="nuda-vp2-live-edge">
  <span class="nuda-vp2-live-edge__pill">
    <span class="nuda-vp2-live-edge__dot" aria-hidden="true"></span>
    LIVE
  </span>
  <div class="nuda-vp2-live-edge__track" aria-hidden="true">
    <span class="nuda-vp2-live-edge__fill"></span>
  </div>
  <button class="nuda-vp2-live-edge__btn" type="button" aria-label="Jump to live edge">
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
         stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
      <path d="M13 5 L20 12 L13 19 M20 12 L4 12" />
    </svg>
    Go live
  </button>
</div>
CSS
.nuda-vp2-live-edge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #161616;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  width: 290px;
}

.nuda-vp2-live-edge__pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 800 9px ui-sans-serif,system-ui,sans-serif;
  color: #fff;
  letter-spacing: .08em;
  flex-shrink: 0;
}

.nuda-vp2-live-edge__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 6px #ff4d4d;
}

.nuda-vp2-live-edge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff4d4d;
  animation: _nuda-vp2liveedgepulse 1.4s ease-out infinite;
}

.nuda-vp2-live-edge__track {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
}

.nuda-vp2-live-edge__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,#e4ff54,#ff4d4d);
  border-radius: 2px;
  transform: scaleX(1);
  transform-origin: left;
}

.nuda-vp2-live-edge__fill::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(255,77,77,.7);
}

.nuda-vp2-live-edge__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 9px ui-sans-serif,system-ui,sans-serif;
  color: #0a0a0a;
  background: #e4ff54;
  border: none;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 28px;
  transition: transform .2s ease,box-shadow .2s ease;
}

.nuda-vp2-live-edge__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(228,255,84,.35);
}

.nuda-vp2-live-edge__btn:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 2px;
}

.nuda-vp2-live-edge__btn svg {
  width: 10px;
  height: 10px;
}

@keyframes _nuda-vp2liveedgepulse {
  0% {
    transform: scale(1);
    opacity: .6;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-vp2-live-edge__dot::after {
    animation: none;
  }
  .nuda-vp2-live-edge__btn {
    transition: none;
  }
  .nuda-vp2-live-edge__btn:hover {
    transform: none;
  }
}

How to use Live Edge Bar

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