Skip to content

Text Marquee

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-marquee" aria-hidden="true">
  <div class="nuda-marquee__track">
    <span class="nuda-marquee__text">Your text here &mdash; Repeating content &mdash;&nbsp;</span>
    <span class="nuda-marquee__text">Your text here &mdash; Repeating content &mdash;&nbsp;</span>
  </div>
</div>
CSS
/* Text Marquee
   Infinite horizontal scrolling text ticker.
   Duplicate the text span for seamless loop.
   Customize: --marquee-speed, --marquee-color */

.nuda-marquee {
  --marquee-speed: 12s;
  --marquee-color: #e4ff54;
  overflow: hidden;
  width: 100%;
}

.nuda-marquee__track {
  display: flex;
  width: max-content;
  animation: nuda-marquee-scroll var(--marquee-speed) linear infinite;
}

.nuda-marquee__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--marquee-color);
  white-space: nowrap;
  padding: 0.5rem 0;
}

/* Hover to pause */
.nuda-marquee:hover .nuda-marquee__track {
  animation-play-state: paused;
}

@keyframes nuda-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

How to use Text Marquee

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