kitbash Sign in Connect agent
Components

Red word band

A full-width red band of wide black words separated by dashes running left forever over a black dot grid; pauses on hover.

Part of the style

Red Hour

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #acaca7;
  --night: #7f7f79;
  --night-2: #80807a;
  --night-3: #7c7c76;
  --dot: rgba(172, 172, 167, 0.55);
  --dot-dark: rgba(0, 0, 0, 0.12);
  --text: #000000;
  --text-mid: #16100b;
  --text-dim: rgba(0, 0, 0, 0.5);
  --signal: #716f57;
  --signal-deep: #737263;
  --violet: #716f57;
  --violet-pale: #0f0f0b;
  --lilac: #3d3d37;
  --plum: #33311b;
  --mint: #141201;
  --moss: #828175;
  --leaf: #302f24;
  --sage: #11100a;
}
</style>

<section class="ticker" aria-label="Where we work">
  <div class="ticker__band">
    <div class="ticker__track">
      <span class="ticker__item">Workshop</span>
      <span class="ticker__item">Taller</span>
      <span class="ticker__item">Werkstatt</span>
      <span class="ticker__item">Pracownia</span>
      <span class="ticker__item">Bottega</span>
      <span class="ticker__item">Room</span>
    </div>
  </div>
  <div class="ticker__band ticker__band--back" aria-hidden="true">
    <div class="ticker__track">
      <span class="ticker__item">Signs</span>
      <span class="ticker__item">Screens</span>
      <span class="ticker__item">Sound</span>
      <span class="ticker__item">Since 2019</span>
    </div>
  </div>
  <p class="ticker__caption">Same bench, six languages. Hover to hold it</p>
</section>

<style>
  .ticker {
    display: grid;
    align-content: center;
    gap: var(--space-m);
    min-height: clamp(380px, 52vw, 640px);
    padding: var(--space-xl) 0;
    background-color: var(--ink);
    background-image: radial-gradient(circle, var(--dot-dark) 1px, transparent 1.6px);
    background-size: var(--grid-step) var(--grid-step);
    background-position: center;
  }
  .ticker__band {
    overflow: hidden;
    background: var(--signal);
    color: var(--ink);
  }
  .ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-roll 26s linear infinite;
  }
  .ticker__band--back {
    border-block: 2px solid var(--signal);
    background: transparent;
    color: var(--signal);
  }
  .ticker__band--back .ticker__track { animation-direction: reverse; animation-duration: 34s; }
  .ticker__band:hover .ticker__track { animation-play-state: paused; }
  .ticker__item {
    flex: none;
    padding: 0.08em 0;
    white-space: nowrap;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(30px, 1rem + 2.8vw, 56px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
  }
  .ticker__item::before {
    content: "\2014";
    padding: 0 0.3em;
  }
  .ticker__caption {
    margin: 0;
    padding: 0 var(--edge);
    color: var(--text-dim);
    font: 400 var(--text-xs)/1.4 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
  }
  @keyframes ticker-roll { to { transform: translateX(-50%); } }
  .ticker.is-offscreen *,
  .ticker.is-offscreen *::after { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
</style>

<script>
(() => {
  const watch = new IntersectionObserver((entries) => {
    for (const entry of entries) entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);
  });
  document.querySelectorAll('.ticker').forEach((root) => watch.observe(root));
  for (const track of document.querySelectorAll('.ticker__track')) {
    for (const item of [...track.children]) {
      const copy = item.cloneNode(true);
      copy.setAttribute('aria-hidden', 'true');
      track.append(copy);
    }
  }
})();
</script>

Similar components

Emblem shelf ticker

Emblem shelf ticker

Blackletter news ticker

Blackletter news ticker

Tilted word ticker

Tilted word ticker

Earned-coins ticker

Earned-coins ticker

Drifting frames

Drifting frames

Reed ribbon

Reed ribbon

Discipline ticker and machine reel

Discipline ticker and machine reel

Curved word band

Curved word band