kitbash Sign in Connect agent
Components

Wiped statement

A bracket-numbered label, a statement a black bar wipes across on view, two narrow columns of copy and a black button.

Part of the style

Black Bar Grotesk

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1c0d06;
  --paper: #91816b;
  --ink-soft: #827460;
  --veil: rgba(121, 106, 84, 0.5);
}
</style>

<section class="statement">
  <p class="statement__label"><span class="statement__num">(01)</span> <span class="statement__name">Our work</span></p>
  <h2 class="statement__line">
    <span class="statement__plain">We build places to linger.</span>
    <span class="statement__wipe" aria-hidden="true"><span class="statement__bar">We build places to linger.</span></span>
  </h2>
  <div class="statement__body">
    <p class="statement__text">Our work sits where a city opens up: market squares, river banks, school yards and the small leftover corners between new housing blocks.</p>
    <p class="statement__text">We plant for shade first and for show second, we keep old trees where they stand, and we draw benches before we draw paths.</p>
    <p class="statement__text">Every scheme is tested on site with chalk, string and borrowed chairs, so the people who will use a place can tell us where it is wrong before it is built.</p>
    <p class="statement__text">The result is ground that keeps working long after the opening day, truly used and truly public.</p>
  </div>
  <a class="statement__cta" href="#">View projects <span class="statement__plus" aria-hidden="true">+</span></a>
</section>

<style>
  .statement {
    padding: var(--section-space) var(--edge);
  }
  .statement__label {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin: 0 0 var(--space-xl);
  }
  .statement__num {
    font-size: var(--text-xs);
  }
  .statement__name {
    padding-bottom: var(--space-xs);
    border-bottom: var(--rule) solid var(--ink);
    font-size: var(--text-l);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  .statement__line {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 var(--space-xl);
    font-family: var(--font-display);
    font-size: var(--display-s);
    font-weight: 400;
    letter-spacing: var(--track-tight);
    line-height: var(--lead-display);
  }
  .statement__plain {
    display: block;
  }
  .statement__wipe {
    position: absolute;
    inset: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--wipe) var(--ease-bar);
  }
  .statement__bar {
    background: var(--ink);
    color: var(--paper);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .statement.is-seen .statement__wipe {
    clip-path: inset(0 0 0 0);
  }
  .statement__line:hover .statement__wipe {
    clip-path: inset(0 0 0 100%);
  }
  .statement__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--gap);
    max-width: 52rem;
    margin-left: auto;
  }
  .statement__text {
    margin: 0 0 var(--space-m);
    font-size: var(--text-s);
    line-height: var(--lead-text);
  }
  .statement__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-height: var(--tap);
    margin-top: var(--space-l);
    padding: 0 var(--space-s);
    border-radius: var(--radius-s);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
  }
  .statement__plus {
    display: inline-block;
    transition: transform var(--quick) var(--ease);
  }
  .statement__cta:hover,
  .statement__cta:focus-visible {
    background: var(--paper);
    color: var(--ink);
    box-shadow: inset 0 0 0 var(--rule) var(--ink);
  }
  .statement__cta:hover .statement__plus,
  .statement__cta:focus-visible .statement__plus {
    transform: rotate(90deg);
  }

  @media (max-width: 40rem) {
    .statement__body { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    .statement__wipe { clip-path: inset(0 0 0 0); transition: none; }
    .statement__line:hover .statement__wipe { clip-path: inset(0 0 0 0); }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        const root = entry.target;
        setTimeout(() => root.classList.add('is-seen'), 250);
        seen.unobserve(root);
      }
    }, { threshold: 0.2 });
    for (const root of document.querySelectorAll('.statement')) seen.observe(root);
  })();
</script>

Similar components

Small caps statement

Small caps statement

Black statement

Black statement

Centred statement

Centred statement

Getting there

Getting there

About banner

About banner

Hazard diamond notice

Hazard diamond notice

Dark ask panel

Dark ask panel

Open call

Open call