kitbash Sign in Connect agent
Components

Statement with picture words

A large semibold paragraph with small oval pictures set into the line like words, each turning slowly.

Part of the style

Speed Line Ovals

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fff4df;
  --paper: #04578b;
  --ink-soft: #83b4df;
  --dot: #5587b2;
  --field: #155d90;
}
</style>

<section class="statement">
  <p class="statement__kicker"><span class="statement__dot" aria-hidden="true"></span>#07 / what this is</p>
  <p class="statement__text">
    We cook one long table
    <img class="statement__pic" src="assets/fruitpiece.jpg" alt="A bowl of fruit" width="800" height="671">
    in a kitchen that is not ours, then pack up and move on. A bakery after closing, a boat shed,
    <img class="statement__pic statement__pic--tall" src="assets/apples.jpg" alt="Apples on a plate" width="598" height="800">
    somebody's aunt's flat. Twelve seats, one menu, and whatever the market
    <img class="statement__pic" src="assets/grapes.jpg" alt="Grapes and apples on a cloth" width="800" height="640">
    had too much of that week.
  </p>
  <a class="statement__link" href="#">how a round works</a>
</section>

<style>
  .statement {
    padding: var(--section-space) var(--edge);
    perspective: 900px;
  }
  .statement__kicker {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin: 0 0 var(--space-l);
    color: var(--ink-soft);
    font: 600 var(--text-m) / 1 var(--font-body);
  }
  .statement__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-oval);
    background: var(--dot);
    animation: statement-blink var(--blink) linear infinite;
  }
  .statement__text {
    max-width: 30em;
    margin: 0;
    font: 600 var(--text-xl) / 1.14 var(--font-body);
    letter-spacing: var(--track-tight);
    text-wrap: pretty;
  }
  .statement__pic {
    display: inline-block;
    width: 2.3em;
    height: 1.2em;
    margin: 0 0.08em;
    border-radius: var(--radius-oval);
    background: var(--field);
    object-fit: cover;
    vertical-align: -0.2em;
    animation: statement-turn var(--spin) linear infinite;
  }
  .statement__pic--tall {
    width: 1.1em;
    height: 1.4em;
    vertical-align: -0.3em;
    animation-direction: reverse;
  }
  .statement__pic:hover {
    animation: statement-shake var(--shake) linear;
  }
  .statement__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: var(--space-l);
    color: var(--ink);
    font: 600 var(--text-l) / var(--leading-l) var(--font-body);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    transition: color var(--quick) var(--ease);
  }
  .statement__link:hover,
  .statement__link:focus-visible {
    color: var(--ink-soft);
  }
  .statement__link:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 4px;
  }
  .statement.is-paused .statement__pic,
  .statement.is-paused .statement__dot {
    animation-play-state: paused;
  }

  @keyframes statement-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  @keyframes statement-turn {
    0% { transform: rotate3d(1, 0, 1, 0deg); }
    50% { transform: rotate3d(1, 1, 1, 180deg); }
    100% { transform: rotate3d(1, 1, 1, 360deg); }
  }
  @keyframes statement-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    25% { transform: translate(-3px, 0) rotate(2deg); }
    50% { transform: translate(2px, -2px) rotate(-2deg); }
    75% { transform: translate(-1px, 2px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .statement__pic,
    .statement__dot,
    .statement__pic:hover {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    const watch = new IntersectionObserver((entries) => {
      for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
    });
    for (const root of document.querySelectorAll('.statement')) watch.observe(root);
  })();
</script>

Similar components

Plain statement

Plain statement

Welcome statement

Welcome statement

Profile

Profile

Red flood studio

Red flood studio

Black statement

Black statement

Tilting statement

Tilting statement

Project chapter

Project chapter

Letter and footer

Letter and footer