Skip to content

Breaking News Band

A copy-paste marquees & tickers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Marquees & TickersHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-mq2-breaking-news" aria-hidden="true">
  <div class="nuda-mq2-breaking-news__badge">
    <span class="nuda-mq2-breaking-news__dot"></span>
    LIVE
  </div>
  <div class="nuda-mq2-breaking-news__track">
    <span class="nuda-mq2-breaking-news__text">Global markets rally on surprise rate-cut signal &mdash;&nbsp;</span>
    <span class="nuda-mq2-breaking-news__text">Global markets rally on surprise rate-cut signal &mdash;&nbsp;</span>
  </div>
</div>
CSS
.nuda-mq2-breaking-news {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
  overflow: hidden;
  background: linear-gradient(90deg,#7f1d1d,#450a0a);
  border-radius: 6px;
}

.nuda-mq2-breaking-news__badge {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.nuda-mq2-breaking-news__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: nuda-mq2-breaking-news-pulse 1.4s ease-in-out infinite;
}

.nuda-mq2-breaking-news__track {
  display: flex;
  width: max-content;
  padding: 0 10px;
  animation: nuda-mq2-breaking-news-scroll 12s linear infinite;
}

.nuda-mq2-breaking-news__text {
  font-size: .62rem;
  color: #fecaca;
  white-space: nowrap;
}

@keyframes nuda-mq2-breaking-news-scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes nuda-mq2-breaking-news-pulse {
  0%,100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: .4;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-mq2-breaking-news__track {
    animation: none;
  }
  .nuda-mq2-breaking-news__dot {
    animation: none;
  }
}

How to use Breaking News Band

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 marquees & tickers components

← Browse all NudaUI components