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 */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap");
:root {
  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
</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

Reed ribbon

Reed ribbon

Discipline ticker and machine reel

Discipline ticker and machine reel

Wave ribbon

Wave ribbon

Ticker and nav bar

Ticker and nav bar

Band and case accordion

Band and case accordion

HUD hero

HUD hero

Screensaver deck

Screensaver deck

Work grid

Work grid