kitbash Sign in Connect agent
Components

Statement

A giant condensed sentence with small rounded clips set inline between its words, each one playing on hover.

Part of the style

Clip Over Headline

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #000000;
  --black: #000000;
  --paper: #ffffff;
  --chip: #e8e8e8;
  --chip-hover: #d6d6d6;
  --ink-soft: #6f6f6f;
  --line: #d3d3d3;
  --on-signal: #ffffff;
  --sky: #8169ea;
  --signal: #6971c0;
  --mint: #d4dafc;
  --screen-top: #6f738e;
  --screen-bottom: #6a719d;
  --stop: #7b7790;
}
</style>

<section class="statement" aria-labelledby="statement-title">
  <p class="statement__label">What we do, roughly</p>
  <h2 class="statement__text" id="statement-title">
    We point one camera at
    <a class="statement__clip" href="#" aria-label="Play: Owl at dusk">
      <img class="statement__picture" src="assets/owl.jpg" alt="" width="544" height="800">
      <span class="statement__disc" aria-hidden="true"><svg viewBox="0 0 100 100"><path d="M38 28 L72 50 L38 72 Z" /></svg></span>
    </a>
    one owl and wait until
    <a class="statement__clip" href="#" aria-label="Play: The heron waits">
      <img class="statement__picture" src="assets/heron.jpg" alt="" width="607" height="800">
      <span class="statement__disc" aria-hidden="true"><svg viewBox="0 0 100 100"><path d="M38 28 L72 50 L38 72 Z" /></svg></span>
    </a>
    something happens.
  </h2>
  <p class="statement__foot">Nothing is sped up. Nothing is cut. Twelve films a season, each as long as the animal needs.</p>
</section>

<style>
  .statement {
    padding: var(--section-space) var(--edge);
    text-align: center;
  }
  .statement__label,
  .statement__foot {
    max-width: 34em;
    margin: 0 auto;
    font-size: var(--text-m);
    line-height: var(--text-leading);
  }
  .statement__label {
    display: inline-block;
    margin-bottom: var(--space-l);
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-chip);
    background: var(--chip);
  }
  .statement__foot {
    margin-top: var(--space-l);
    color: var(--ink-soft);
  }
  .statement__text {
    max-width: 12em;
    margin: 0 auto;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 500;
    line-height: var(--display-leading);
    letter-spacing: var(--display-tracking);
    text-wrap: balance;
  }

  .statement__clip {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.35em;
    height: 0.78em;
    margin: 0 0.04em;
    vertical-align: -0.02em;
    border-radius: var(--radius-clip);
    overflow: hidden;
    background: linear-gradient(180deg, var(--screen-top), var(--screen-bottom));
    transition: width var(--time) var(--ease-out), border-radius var(--time) var(--ease-out);
  }
  .statement__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    mix-blend-mode: multiply;
    filter: contrast(1.1);
    transition: scale var(--slow) var(--ease-out);
  }
  .statement__disc {
    position: relative;
    display: grid;
    width: 0.5em;
    height: 0.5em;
    border-radius: var(--radius-round);
    background: var(--signal);
    opacity: 0;
    scale: 0.6;
    transition: opacity var(--time) var(--ease), scale var(--slow) var(--ease-out);
  }
  .statement__disc svg { width: 100%; height: 100%; fill: var(--on-signal); }
  .statement__clip:is(:hover, :focus-visible) { width: 1.7em; }
  .statement__clip:is(:hover, :focus-visible) .statement__picture { scale: 1.12; }
  .statement__clip:is(:hover, :focus-visible) .statement__disc { opacity: 1; scale: 1; }
  .statement__clip:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

  @media (max-width: 640px) {
    .statement__clip { min-height: 44px; }
  }
</style>

Similar components

Tilting statement

Tilting statement

Black half, photo half

Black half, photo half

Night Room Statement

Night Room Statement

Matted diff feature

Matted diff feature

Window glimpse and statement

Window glimpse and statement

Centred statement

Centred statement

Night statement and figures

Night statement and figures

Staggered manifesto

Staggered manifesto