Activity ticker

CSS infinite marquee ticker: a looping strip of avatar chips with an edge fade that pauses on hover. HTML and CSS only.

The chips are listed twice in one flex track that is as wide as its content (width: max-content). A linear, infinite keyframe moves the track left by 50%, about one copy of the chips, so the loop restarts where it began. The second copy is aria-hidden so screen readers read each item once, a mask gradient fades both ends, and hover pauses the animation. With prefers-reduced-motion the animation is off and the strip scrolls sideways by hand.

Open preview
snippet.html22 lines
<div class="atk" role="region" aria-label="Recent activity">
  <ul class="atk__track">
    <li class="atk__chip"><i style="--c:#ff5a8a"></i>Noor joined a plan</li>
    <li class="atk__chip"><i style="--c:#ffc83d"></i>Gus suggested a new stop</li>
    <li class="atk__chip"><i style="--c:#5b6cff"></i>Aiko opened the itinerary</li>
    <li class="atk__chip"><i style="--c:#6fd96f"></i>Pablo voted for Friday</li>
    <li class="atk__chip" aria-hidden="true"><i style="--c:#ff5a8a"></i>Noor joined a plan</li>
    <li class="atk__chip" aria-hidden="true"><i style="--c:#ffc83d"></i>Gus suggested a new stop</li>
    <li class="atk__chip" aria-hidden="true"><i style="--c:#5b6cff"></i>Aiko opened the itinerary</li>
    <li class="atk__chip" aria-hidden="true"><i style="--c:#6fd96f"></i>Pablo voted for Friday</li>
  </ul>
</div>

<style>
  .atk { --atk-ink: #121a0e; --atk-bg: #8fba7a; width: min(100%, 720px); padding: 14px 0; overflow: hidden; background: var(--atk-bg); font-family: ui-sans-serif, system-ui, sans-serif; -webkit-mask: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); mask: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); }
  .atk__track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: atk-slide 28s linear infinite; }
  .atk:hover .atk__track { animation-play-state: paused; }
  .atk__chip { display: inline-flex; align-items: center; gap: 10px; padding-right: 14px; border: 1px solid var(--atk-ink); background: #fff; color: var(--atk-ink); font-size: 1rem; white-space: nowrap; }
  .atk__chip i { width: 36px; height: 36px; background: radial-gradient(circle, var(--c) 0 20%, #fff0 72%), #ffe3b8; }
  @keyframes atk-slide { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .atk { overflow-x: auto; } .atk__track { animation: none; } }
</style>

Kind
Component
Category
Other
Added
6 Nov 2026
Canvas
Centered
File
snippet.html
Size
22 lines · 1.8 KB
Inspired by
onhomeroom.com
  • marquee
  • social-proof
  • animation
  • playful

One file: HTML, a style block and, when needed, a small script. Paste it anywhere. Nothing to install.