kitbash Sign in Connect agent
Components

Staggered case reel

Case tiles alternate left and right down a 12-column grid, pictures cover-zooming in as they arrive, each with a title and pill.

Part of the style

Staggered Black Folio

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #03040d;
  --ink: #f3f4fe;
  --ink-soft: #9597a6;
  --ink-mute: #666978;
  --stage: #393c4a;
  --stage-light: #cccedd;
  --paper: #f3f4fe;
  --paper-ink: #03040d;
  --rule: #2a2d3a;
  --flat-orange: #616281;
  --flat-yellow: #616281;
  --flat-green: #616281;
  --flat-blue: #616281;
}
</style>

<section class="reel" aria-label="Selected work">
  <article class="reel__tile" style="--col: 6 / 10;">
    <a class="reel__frame" href="#" style="--ratio: 16 / 11;" tabindex="-1" aria-hidden="true">
      <img class="reel__picture" src="assets/teapot.jpg" alt="" width="843" height="674" loading="eager">
    </a>
    <h2 class="reel__title">Porter &amp; Vane</h2>
    <a class="reel__pill" href="#">View case study</a>
  </article>

  <article class="reel__tile" style="--col: 2 / 5;">
    <a class="reel__frame" href="#" style="--ratio: 4 / 5;" tabindex="-1" aria-hidden="true">
      <img class="reel__picture" src="assets/jar.jpg" alt="" width="525" height="800" loading="eager">
    </a>
    <h2 class="reel__title">Greenhalgh Ceramics</h2>
    <a class="reel__pill" href="#">View case study</a>
  </article>

  <article class="reel__tile" style="--col: 9 / 12;">
    <a class="reel__frame" href="#" style="--ratio: 1 / 1;" tabindex="-1" aria-hidden="true">
      <img class="reel__picture" src="assets/palmhouse.jpg" alt="" width="1118" height="1200" loading="lazy">
    </a>
    <h2 class="reel__title">The Palm Room</h2>
    <a class="reel__pill" href="#">View case study</a>
  </article>

  <article class="reel__tile" style="--col: 1 / 4;">
    <a class="reel__frame reel__frame--flat" href="#" style="--ratio: 1 / 1;" tabindex="-1" aria-hidden="true">
      <svg class="reel__flat" viewBox="0 0 400 400" role="img" aria-label="Flat colour identity: a rising sun, a sail and waves">
        <rect class="reel__flat-orange" x="0" y="0" width="200" height="200"/>
        <rect class="reel__flat-blue" x="200" y="0" width="200" height="200"/>
        <rect class="reel__flat-green" x="0" y="200" width="400" height="200"/>
        <clipPath id="reel-sun-box"><rect x="0" y="0" width="200" height="200"/></clipPath>
        <g clip-path="url(#reel-sun-box)"><g class="reel__sun"><circle class="reel__flat-yellow" cx="100" cy="200" r="78"/></g></g>
        <g class="reel__sail">
          <path class="reel__flat-white" d="M300 34 L300 168 L236 168 Z"/>
          <path class="reel__flat-yellow" d="M306 64 L306 168 L352 168 Z"/>
        </g>
        <path class="reel__wave" d="M-20 270 q40 -34 80 0 t80 0 t80 0 t80 0 t80 0 t80 0"/>
        <path class="reel__wave" d="M-60 320 q40 -34 80 0 t80 0 t80 0 t80 0 t80 0 t80 0"/>
        <path class="reel__wave" d="M-20 370 q40 -34 80 0 t80 0 t80 0 t80 0 t80 0 t80 0"/>
      </svg>
    </a>
    <h2 class="reel__title">Harbour Week 2027</h2>
    <a class="reel__pill" href="#">View case study</a>
  </article>

  <article class="reel__tile" style="--col: 6 / 11;">
    <a class="reel__frame" href="#" style="--ratio: 3 / 2;" tabindex="-1" aria-hidden="true">
      <img class="reel__picture" src="assets/chair.jpg" alt="" width="578" height="800" loading="lazy">
    </a>
    <h2 class="reel__title">Moor Chair Co.</h2>
    <a class="reel__pill" href="#">View case study</a>
  </article>
</section>

<style>
  .reel {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding: var(--space-xl) var(--edge) var(--section-space);
  }
  .reel__tile {
    grid-column: var(--col, 1 / -1);
    display: grid;
    justify-items: start;
    align-content: start;
    gap: var(--space-s);
    margin-bottom: var(--space-xl);
  }
  .reel__frame {
    display: block;
    width: 100%;
    aspect-ratio: var(--ratio, 4 / 3);
    margin-bottom: var(--space-xs);
    overflow: hidden;
    border-radius: var(--radius-frame);
    background: var(--stage);
  }
  .reel__picture,
  .reel__flat {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    transition: transform var(--zoom) var(--ease-out);
  }
  .reel__tile.is-seen .reel__picture,
  .reel__tile.is-seen .reel__flat {
    transform: none;
  }
  .reel__title,
  .reel__pill {
    opacity: 0;
    transition: opacity var(--fade) var(--ease) 200ms, background-color var(--quick) linear, color var(--quick) linear;
  }
  .reel__tile.is-seen .reel__title,
  .reel__tile.is-seen .reel__pill {
    opacity: 1;
  }
  .reel__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-m);
    font-weight: 400;
    line-height: 1.4;
  }
  .reel__pill {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 28px;
    border: var(--line) solid var(--ink);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: var(--text-s);
    font-weight: 500;
    text-decoration: none;
  }
  .reel__pill:hover,
  .reel__pill:focus-visible {
    background: var(--ink);
    color: var(--page);
    outline: none;
  }

  .reel__flat-orange { fill: var(--flat-orange); }
  .reel__flat-blue { fill: var(--flat-blue); }
  .reel__flat-green { fill: var(--flat-green); }
  .reel__flat-yellow { fill: var(--flat-yellow); }
  .reel__flat-white { fill: var(--paper); }
  .reel__wave {
    fill: none;
    stroke: var(--paper);
    stroke-width: 14;
    stroke-linecap: round;
    animation: reel-wave 4s linear infinite;
  }
  .reel__wave:nth-of-type(2) { animation-direction: reverse; }
  .reel__sun {
    animation: reel-sun 6s ease-in-out infinite alternate;
  }
  .reel__sail {
    transform-origin: 300px 168px;
    animation: reel-sail 3s ease-in-out infinite alternate;
  }
  .reel.is-off .reel__wave,
  .reel.is-off .reel__sun,
  .reel.is-off .reel__sail {
    animation-play-state: paused;
  }
  @keyframes reel-wave { to { transform: translateX(-160px); } }
  @keyframes reel-sun { from { transform: translateY(20px); } to { transform: translateY(-14px); } }
  @keyframes reel-sail { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

  @media (max-width: 40rem) {
    .reel__tile,
    .reel__tile + .reel__tile {
      grid-column: 1 / -1;
      margin-top: 0;
      margin-bottom: var(--space-l);
    }
    .reel__tile:nth-child(odd) {
      grid-column: 2 / -1;
    }
    .reel__tile:nth-child(even) {
      grid-column: 1 / 12;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .reel__picture,
    .reel__flat { transform: none; }
    .reel__title,
    .reel__pill { opacity: 1; }
    .reel__wave,
    .reel__sun,
    .reel__sail { animation: none; }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.reel')) {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.1 });
    root.querySelectorAll('.reel__tile').forEach((tile) => seen.observe(tile));
    new IntersectionObserver(([entry]) => {
      root.classList.toggle('is-off', !entry.isIntersecting);
    }).observe(root);
  }
})();
</script>

Similar components

Line-screen archive

Line-screen archive

Green flood

Green flood

Project cards

Project cards

Dark work frames

Dark work frames

Grey print tiles

Grey print tiles

Drifting tile wall

Drifting tile wall

Work rail

Work rail

Colour wash showcase

Colour wash showcase