kitbash Sign in Connect agent
Components

Drifting marks statement

A large uppercase statement in difference blend over pale stamps that drift and turn on a loop.

Part of the style

Crossed Ring Stamps

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

Preview

Code
<section class="drift">
  <div class="drift__field" aria-hidden="true">
    <svg class="drift__stamp" data-x="0.06" data-y="0.16" data-speed="0.8" style="--size: 150px; color: var(--stamp-mint)" viewBox="0 0 100 100" fill="none"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(30 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(-30 50 50)"/></svg>
    <svg class="drift__stamp" data-x="0.72" data-y="0.24" data-speed="-0.6" style="--size: 130px; color: var(--stamp-foam)" viewBox="0 0 100 100" fill="none"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="17" ry="46"/><path d="M4 50H96"/></svg>
    <svg class="drift__stamp" data-x="0.48" data-y="0.7" data-speed="0.5" style="--size: 140px; color: var(--stamp-lime)" viewBox="0 0 100 100" fill="none"><ellipse cx="50" cy="50" rx="46" ry="15"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(45 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(90 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(135 50 50)"/></svg>
    <svg class="drift__stamp" data-x="0.02" data-y="0.74" data-speed="-0.9" style="--size: 120px; color: var(--stamp-lilac)" viewBox="0 0 100 100" fill="none"><circle cx="50" cy="50" r="46"/><circle cx="62" cy="40" r="21"/><path d="M6 68L94 32"/></svg>
    <svg class="drift__stamp" data-x="0.86" data-y="0.78" data-speed="0.7" style="--size: 160px; color: var(--stamp-ice)" viewBox="0 0 100 100" fill="none"><circle cx="50" cy="50" r="46"/><path d="M8 36C22 26 36 46 50 36S78 26 92 36"/><path d="M5 52C20 42 35 62 50 52S80 42 95 52"/><path d="M10 68C24 58 37 78 50 68S76 58 90 68"/></svg>
    <svg class="drift__stamp" data-x="0.34" data-y="0.06" data-speed="-0.4" style="--size: 110px; color: var(--stamp-mint)" viewBox="0 0 100 100" fill="none"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="17" ry="46"/><path d="M4 50H96"/></svg>
  </div>

  <div class="drift__body">
    <p class="drift__kicker">Why the mark</p>
    <p class="drift__statement">Clay forgets nothing. A thumb, a date, a ring pressed in the foot: the mark is how a bowl finds its way home.</p>
    <p class="drift__sign">Ondo Clayworks, since 2011</p>
  </div>
</section>

<style>
  .drift {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(520px, 56vw, 760px);
    padding: var(--section-space) var(--edge);
    overflow: hidden;
    isolation: isolate;
    background: var(--paper);
  }
  .drift__field {
    position: absolute;
    inset: 0;
    z-index: -1;
  }
  .drift__stamp {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--size, 140px);
    height: var(--size, 140px);
    stroke: currentColor;
    stroke-width: var(--stamp-line);
    will-change: transform;
  }
  .drift__stamp * { vector-effect: non-scaling-stroke; }

  .drift__body {
    max-width: 62rem;
    mix-blend-mode: difference;
    color: var(--blend-ink);
  }
  .drift__kicker,
  .drift__sign {
    margin: 0;
    font-size: var(--text-s);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }
  .drift__statement {
    margin: var(--space-m) 0 var(--space-l);
    font-family: var(--font-display);
    font-size: clamp(34px, 5.4vw, 76px);
    font-weight: var(--weight-light);
    line-height: 1.02;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    text-wrap: balance;
  }
</style>

<script>
(() => {
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  for (const root of document.querySelectorAll('.drift')) {
    const stamps = [...root.querySelectorAll('.drift__stamp')].map((el, i) => ({
      el,
      x: Number(el.dataset.x),
      y: Number(el.dataset.y),
      speed: Number(el.dataset.speed),
      phase: i * 1.7,
    }));
    const turn = parseFloat(getComputedStyle(root).getPropertyValue('--drift-time')) || 60;
    let frame = 0;

    const place = (seconds) => {
      const w = root.clientWidth;
      const h = root.clientHeight;
      for (const s of stamps) {
        const t = seconds / turn * Math.PI * 2 * s.speed + s.phase;
        const x = s.x * w + Math.sin(t) * 40;
        const y = s.y * h + Math.cos(t * 0.8) * 30;
        const angle = (seconds / turn) * 360 * s.speed - 20;
        s.el.style.transform = `translate(${x.toFixed(1)}px, ${y.toFixed(1)}px) rotate(${angle.toFixed(1)}deg)`;
      }
    };
    const tick = (now) => {
      place(now / 1000);
      frame = requestAnimationFrame(tick);
    };

    place(0);
    new ResizeObserver(() => place(performance.now() / 1000)).observe(root);
    new IntersectionObserver(([entry]) => {
      cancelAnimationFrame(frame);
      if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
    }).observe(root);
  }
})();
</script>

Similar components

Case study flood

Case study flood

Black statement

Black statement

Filling statement

Filling statement

Discipline shapes

Discipline shapes

Project sheet

Project sheet

Reading passage

Reading passage

Window glimpse and statement

Window glimpse and statement

Statement

Statement