kitbash Sign in Connect agent
Components

Script statement

Cocoa band with a small label, a centred uppercase serif statement and an endless line of giant pink script drifting behind.

Part of the style

Blush Script Parlour

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --blush: #ffd701;
  --cocoa: #2e2816;
  --cocoa-veil: rgba(47, 41, 22, 0.5);
  --cocoa-line: rgba(46, 40, 22, 0.35);
  --blush-line: rgba(255, 215, 1, 0.4);
  --blush-soft: rgba(255, 215, 1, 0.72);
  --night: #1a1404;
  --pink: #ce8859;
}
</style>

<section class="statement">
  <div class="statement__copy">
    <p class="statement__label statement__item">Atelier</p>
    <h2 class="statement__text statement__item">Velours is a small house of perfumers who pour scent for rooms, not people, mixed by hand in a former hat shop</h2>
  </div>
  <div class="statement__drift" aria-hidden="true">
    <div class="statement__track">
      <span class="statement__word">Velours maison</span>
      <span class="statement__word">Velours maison</span>
    </div>
  </div>
  <p class="statement__aside statement__item">We like a room that smells of somewhere you have never been</p>
</section>

<style>
  .statement {
    position: relative;
    overflow: hidden;
    padding: var(--section-space) var(--edge);
    background: var(--cocoa);
    color: var(--blush);
    text-align: center;
  }
  .statement__copy {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
  }
  .statement__label {
    margin: 0 0 var(--space-l);
    font-size: var(--text-m);
    text-transform: uppercase;
  }
  .statement__text {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--serif-m);
    font-weight: 400;
    letter-spacing: var(--tracking-serif);
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
  }
  .statement__drift {
    margin: clamp(-2rem, -3vw, -1rem) calc(var(--edge) * -1) 0;
    overflow: hidden;
  }
  .statement__track {
    display: flex;
    width: max-content;
    animation: statement-roll var(--drift) linear infinite;
  }
  .statement:hover .statement__track,
  .statement.is-off .statement__track {
    animation-play-state: paused;
  }
  .statement__word {
    flex: none;
    padding-right: 0.3em;
    color: var(--pink);
    font-family: var(--font-script);
    font-size: var(--script-xl);
    line-height: 1.15;
    white-space: nowrap;
  }
  .statement__aside {
    position: relative;
    max-width: 40rem;
    margin: clamp(-1rem, -2vw, 0rem) auto 0;
    color: var(--blush-soft);
    font-family: var(--font-serif);
    font-size: var(--text-l);
    letter-spacing: var(--tracking-serif);
    line-height: 1.15;
    text-transform: uppercase;
    text-wrap: balance;
  }
  .statement__item {
    opacity: 0;
    translate: 0 16px;
    transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
    transition-delay: calc(var(--order, 0) * 80ms);
  }
  .statement.is-seen .statement__item {
    opacity: 1;
    translate: 0 0;
  }
  @keyframes statement-roll { to { transform: translateX(-50%); } }

  @media (prefers-reduced-motion: reduce) {
    .statement__track { animation: none; }
    .statement__item { opacity: 1; translate: none; transition: none; }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        entry.target.classList.toggle('is-off', !entry.isIntersecting);
        if (entry.isIntersecting) entry.target.classList.add('is-seen');
      }
    }, { threshold: 0.1 });
    for (const root of document.querySelectorAll('.statement')) {
      root.querySelectorAll('.statement__item').forEach((item, order) => item.style.setProperty('--order', order));
      const track = root.querySelector('.statement__track');
      for (const word of [...track.children]) track.append(word.cloneNode(true));
      seen.observe(root);
    }
  })();
</script>

Similar components

Filling statement

Filling statement

Spread-letter practice

Spread-letter practice

Wiped statement

Wiped statement

Statement with pills

Statement with pills

Black half, photo half

Black half, photo half

Words lighting up

Words lighting up

Lead entry

Lead entry

Essay

Essay