kitbash Sign in Connect agent
Components

Scattered figures banner

A pale grey field with small cut-out portrait figures scattered and bobbing, and one heavy extended label in the middle as the link.

Part of the style

Grey Backdrop Lineup

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1d0c0a;
  --paper: #fcf4f5;
  --ink-mute: #bcb0b2;
  --night: #51413f;
  --on-night: #fcf4f5;
  --fog: #eae1e2;
  --backdrop: #ded4d5;
  --chip: #c2b7b8;
  --rule-colour: #dfd5d7;
  --shade: rgba(29, 12, 10, 0.42);
}
</style>

<section class="banner">
  <a class="banner__link" href="#">
    <span class="banner__field" aria-hidden="true">
      <img class="banner__figure" style="--x: 6%; --y: 12%; --d: 0s" src="assets/burgher.jpg" alt="" width="370" height="800" />
      <img class="banner__figure" style="--x: 21%; --y: 58%; --d: -1.2s" src="assets/lady-gilchrist.jpg" alt="" width="561" height="800" />
      <img class="banner__figure" style="--x: 33%; --y: 6%; --d: -2.4s" src="assets/sailor.jpg" alt="" width="540" height="800" />
      <img class="banner__figure" style="--x: 47%; --y: 66%; --d: -0.6s" src="assets/serf.jpg" alt="" width="450" height="800" />
      <img class="banner__figure" style="--x: 60%; --y: 4%; --d: -3s" src="assets/young-girl.jpg" alt="" width="540" height="800" />
      <img class="banner__figure" style="--x: 72%; --y: 54%; --d: -1.8s" src="assets/burgher.jpg" alt="" width="370" height="800" />
      <img class="banner__figure" style="--x: 85%; --y: 14%; --d: -0.9s" src="assets/serf.jpg" alt="" width="450" height="800" />
      <img class="banner__figure" style="--x: 91%; --y: 62%; --d: -2.1s" src="assets/sailor.jpg" alt="" width="540" height="800" />
      <img class="banner__figure" style="--x: 2%; --y: 70%; --d: -3.3s" src="assets/young-girl.jpg" alt="" width="540" height="800" />
    </span>
    <span class="banner__label">Open Kitchen Nights</span>
    <span class="banner__sub">Bake one shift with us before you apply</span>
  </a>
</section>

<style>
  .banner {
    padding: var(--space-xl) var(--edge);
    background: var(--paper);
  }
  .banner__link {
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-s);
    min-height: clamp(320px, 34vw, 480px);
    overflow: hidden;
    background: var(--backdrop);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
  }
  .banner__link:focus-visible {
    outline: var(--rule-bold) solid var(--ink);
    outline-offset: 3px;
  }
  .banner__field {
    position: absolute;
    inset: 0;
  }
  .banner__figure {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: clamp(36px, 4.4vw, 62px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: 50% 40%;
    filter: grayscale(1) brightness(1.3) contrast(1.45);
    mix-blend-mode: multiply;
    animation: banner-bob 3.6s ease-in-out infinite;
    animation-delay: var(--d);
    transition: scale var(--time-slow) var(--ease);
  }
  .banner__link:hover .banner__figure {
    scale: 1.12;
  }
  .banner.is-paused .banner__figure {
    animation-play-state: paused;
  }
  @keyframes banner-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
  .banner__label {
    position: relative;
    z-index: 1;
    padding: 0 var(--space-m);
    font-family: var(--font-wide);
    font-stretch: var(--wide);
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
    transition: letter-spacing var(--time-slow) var(--ease);
  }
  .banner__link:hover .banner__label {
    letter-spacing: 0.05em;
  }
  .banner__sub {
    position: relative;
    z-index: 1;
    background: var(--backdrop);
    padding: 0 var(--space-m);
    font-size: var(--text-xs);
    font-weight: 700;
  }

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

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

Similar components

Drifting wall call

Drifting wall call

Signup card

Signup card

Green pill sign-off

Green pill sign-off

Sticker follow line

Sticker follow line

Studio note

Studio note

Catchphrase and tickets

Catchphrase and tickets

Figure with call to action

Figure with call to action

Coin rain call

Coin rain call