kitbash Sign in Connect agent
Components

Quote rails

Five grey stars, a centred heading on a pool of white light and two rails of white quote cards drifting in opposite directions, faded at both edges. The key phrase in each quote is bold on pale mint. The script doubles each rail for a seamless loop; hover pauses it.

Part of the style

Quiet Instrument

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #7d837b;
  --card: #838981;
  --ink: #121212;
  --ink-mid: rgba(18, 18, 18, 0.7);
  --ink-soft: #363935;
  --ink-faint: #1a1d19;
  --chip: #6f756d;
  --emboss: #686e67;
  --night: #101010;
  --graphite: #f3f2ef;
  --on-dark: #80867e;
  --mint-soft: #7a8078;
  --face-paper: #737971;
  --face-paper-ink: #252423;
  --face-glacier: #60655e;
  --face-glacier-ink: #2c2b29;
  --face-harbour-ink: #6f756d;
  --chrome-light: #838981;
  --chrome: #6c716a;
  --chrome-dark: #4f524d;
  --lume: #9b7667;
  --mint: #9f7769;
  --aqua: #c07257;
  --lume-ice: #ab7562;
  --mint-ink: #2b0a02;
  --face-court: #a55f47;
  --green: #3b0f01;
  --deep: #280c02;
  --deep-dark: #150300;
  --lume-lime: #9f7769;
  --face-court-ink: #a07e73;
  --face-harbour: #3e1f13;
}
</style>

<section class="quotes">
  <svg class="quotes__sprite" aria-hidden="true" focusable="false">
    <symbol id="quotes-star" viewBox="0 0 24 24">
      <path d="M12 2.5l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.5l-5.9 3.2 1.2-6.6-4.8-4.6 6.6-.9Z" />
    </symbol>
  </svg>

  <div class="quotes__stars" role="img" aria-label="Five stars">
    <svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
    <svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
    <svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
    <svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
    <svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
  </div>
  <h2 class="quotes__title">Players keep it open.</h2>

  <div class="quotes__rail">
    <ul class="quotes__track">
      <li class="quotes__card">
        <blockquote class="quotes__words">“I bought it to practise scales and ended up moving my desk so I can see it from the sofa. <mark class="quotes__mark">It is the calmest thing on my screen.</mark>”</blockquote>
        <cite class="quotes__name">Ines Calder</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“Twelve dollars for a metronome felt silly for about a minute. <mark class="quotes__mark">Then the needle started to swing</mark> and I stopped arguing.”</blockquote>
        <cite class="quotes__name">Tomasz Brandt</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“It does one thing and makes no noise about it. <mark class="quotes__mark">My students ask what it is before they ask about the piece.</mark>”</blockquote>
        <cite class="quotes__name">Priya Venkataraman</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“Finally a click I can leave running through a lesson. <mark class="quotes__mark">Silent mode is the feature I did not know I needed.</mark>”</blockquote>
        <cite class="quotes__name">Joon Halvorsen</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“Small, careful and a little obsessive. <mark class="quotes__mark">You can tell somebody lost sleep over every tick mark.</mark>”</blockquote>
        <cite class="quotes__name">Marit Oyelaran</cite>
      </li>
    </ul>
  </div>

  <div class="quotes__rail quotes__rail--back">
    <ul class="quotes__track">
      <li class="quotes__card">
        <blockquote class="quotes__words">“It stays on the second display all day, even when the guitar is in its case. <mark class="quotes__mark">It slows the whole room down.</mark>”</blockquote>
        <cite class="quotes__name">Dario Feld</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“Seven-eight with the accent where I want it, set in two taps. <mark class="quotes__mark">Nothing else got this right.</mark>”</blockquote>
        <cite class="quotes__name">Anouk Sørlie</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“The night face is why I practise after the kids are asleep. <mark class="quotes__mark">A soft orange glow and no excuses.</mark>”</blockquote>
        <cite class="quotes__name">Bea Lindqvist</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“I own four metronomes and an app for each of them. <mark class="quotes__mark">This is the only one I ever look at.</mark>”</blockquote>
        <cite class="quotes__name">Kofi Adeyemi</cite>
      </li>
      <li class="quotes__card">
        <blockquote class="quotes__words">“Installed in seconds, understood in less. <mark class="quotes__mark">The hard part is closing it.</mark>”</blockquote>
        <cite class="quotes__name">Ruth Mäkelä</cite>
      </li>
    </ul>
  </div>
</section>

<style>
  .quotes {
    --quotes-gap: clamp(0.75rem, 2.1vw, 1.875rem);
    position: relative;
    isolation: isolate;
    padding: clamp(3rem, 7vw, 7rem) var(--edge) calc(var(--section-space) / 2);
    text-align: center;
  }
  /* A pool of white light on the grey page, behind the heading. */
  .quotes::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 30rem;
    background: radial-gradient(45% 50% at 50% 42%, var(--card), transparent);
  }
  .quotes__sprite {
    position: absolute;
    width: 0;
    height: 0;
  }
  .quotes__stars {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--space-m);
  }
  .quotes__star {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--ink-faint);
    stroke: var(--ink-faint);
    stroke-width: 1.6;
    stroke-linejoin: round;
  }
  .quotes__title {
    margin: 0 0 clamp(2rem, 4.4vw, 3.5rem);
    font-size: var(--head-m);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: var(--tracking-head);
    text-wrap: balance;
  }

  .quotes__rail {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--night) 9%, var(--night) 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, var(--night) 9%, var(--night) 91%, transparent);
  }
  .quotes__rail + .quotes__rail {
    margin-top: var(--quotes-gap);
  }
  /* The trailing padding makes the doubled track exactly two equal halves, so -50% lands on a seam. */
  .quotes__track {
    display: flex;
    gap: var(--quotes-gap);
    width: max-content;
    margin: 0;
    padding: 0 var(--quotes-gap) 0 0;
    list-style: none;
  }
  .quotes__track.is-looping {
    animation: quotes-drift var(--drift) linear infinite;
    animation-delay: calc(var(--drift) / -14);
  }
  .quotes__rail--back .quotes__track.is-looping {
    animation-duration: calc(var(--drift) * 1.25);
    animation-direction: reverse;
  }
  .quotes__rail:hover .quotes__track,
  .quotes__rail:focus-within .quotes__track {
    animation-play-state: paused;
  }
  .quotes__card {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-l);
    width: clamp(16.5rem, 26vw, 21.875rem);
    min-height: 15.5rem;
    padding: clamp(1.25rem, 2.2vw, 1.875rem);
    border-radius: var(--radius-card);
    background: var(--card);
    text-align: left;
  }
  .quotes__words {
    margin: 0;
    line-height: 1.56;
  }
  .quotes__mark {
    padding: 0.16em 0.12em;
    background: var(--mint-soft);
    color: inherit;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .quotes__name {
    font-size: var(--text-s);
    font-style: normal;
    font-weight: 600;
  }

  @keyframes quotes-drift {
    to {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 40rem) {
    .quotes__card {
      border-radius: var(--radius-window);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .quotes__rail {
      overflow-x: auto;
      -webkit-mask-image: none;
      mask-image: none;
    }
    .quotes__track.is-looping {
      animation: none;
    }
    .quotes__card.is-copy {
      display: none;
    }
  }
</style>

<script>
  (() => {
    const LOOPING = "is-looping";
    const COPY = "is-copy";

    const silentCopyOf = (card) => {
      const copy = card.cloneNode(true);
      copy.classList.add(COPY);
      copy.setAttribute("aria-hidden", "true");
      return copy;
    };

    const loopTrack = (track) => {
      track.append(...[...track.children].map(silentCopyOf));
      track.classList.add(LOOPING);
    };

    document.querySelectorAll(".quotes").forEach((root) => root.querySelectorAll(".quotes__track").forEach(loopTrack));
  })();
</script>

Similar components

Press quote

Press quote

Pink voice card

Pink voice card

Slab quote

Slab quote

Timed reviews

Timed reviews

Word-by-word testimonial

Word-by-word testimonial

Keypad and knob

Keypad and knob

Feature cells

Feature cells

Sand box colophon

Sand box colophon