kitbash Sign in Connect agent
Components

Filling quote

Huge centred condensed quote on deep pebbled black under oversized quote marks, its words filling from grey to cream as it arrives, with a dim line of copy below.

Part of the style

Gold Foil Card Wall

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

Preview

Code
<section class="quote">
  <figure class="quote__figure">
    <span class="quote__marks" aria-hidden="true">“”</span>
    <blockquote class="quote__text">
      <p class="quote__line">He never ran for the clock. He ran for whoever was in front.</p>
    </blockquote>
    <figcaption class="quote__caption">
      <span class="quote__who">Ada Marsh</span>
      <span class="quote__role">Trainer, Northfield stables</span>
    </figcaption>
    <p class="quote__after">More than wins, more than purses, more than one fast summer. A horse people still drive out to see on a cold Sunday.</p>
  </figure>
</section>

<style>
  .quote {
    position: relative;
    padding: var(--section-space) var(--edge);
    background: var(--pebble), var(--night-deep);
    background-size: 220px, auto;
    background-blend-mode: soft-light, normal;
    color: var(--cream);
    text-align: center;
  }
  .quote__figure {
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    max-width: 62rem;
    margin: 0 auto;
  }
  .quote__marks {
    height: 0.5em;
    font: 400 clamp(4rem, 8vw, 6.5rem)/1 var(--font-display);
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    opacity: 0.7;
  }
  .quote__text { margin: 0; }
  .quote__line {
    margin: 0;
    font: 400 var(--display-l)/0.98 var(--font-display);
    letter-spacing: var(--track-display);
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--cream);
  }
  .quote__word {
    color: rgba(176, 168, 157, 0.32);
    transition: color var(--mid) var(--ease-fade);
    transition-delay: calc(var(--order, 0) * 45ms);
  }
  .quote.is-seen .quote__word { color: var(--cream); }
  .quote__caption {
    display: grid;
    gap: var(--space-xs);
    font: 400 var(--caption)/1.5 var(--font-mono);
    letter-spacing: var(--track-caption);
    text-transform: uppercase;
  }
  .quote__who { font-size: var(--caption-l); color: var(--gold); }
  .quote__role { color: var(--ink-soft); }
  .quote__after {
    max-width: 46ch;
    margin: 0;
    font-size: var(--text-s);
    color: var(--ink-dim);
    text-wrap: balance;
  }

  @media (prefers-reduced-motion: reduce) {
    .quote__word { color: var(--cream); transition: none; }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.quote')) {
    const line = root.querySelector('.quote__line');
    const words = line.textContent.trim().split(/\s+/);
    line.textContent = '';
    words.forEach((word, order) => {
      const span = document.createElement('span');
      span.className = 'quote__word';
      span.style.setProperty('--order', order);
      span.textContent = word;
      line.append(span, ' ');
    });
    const seen = new IntersectionObserver((entries) => {
      if (!entries.some((entry) => entry.isIntersecting)) return;
      root.classList.add('is-seen');
      seen.disconnect();
    }, { threshold: 0.2 });
    seen.observe(root);
  }
})();
</script>

Similar components

Pink voice card

Pink voice card

Pink-ruled review cards

Pink-ruled review cards

White press slab

White press slab

Word-by-word testimonial

Word-by-word testimonial

Quote cards

Quote cards

Timed reviews

Timed reviews

Press quote

Press quote

Quote band

Quote band