kitbash Sign in Connect agent
Components

Floating card spotlight

Large tilted project cards with hole-punch dots that scroll under a sticky caption row of line, disciplines, city, year and a link.

Part of the style

Bulging Orb Index

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #ffffff;
  --paper: #131313;
  --ink-soft: #6b6b6b;
  --tile-grey: #343434;
  --tile-dark: #ababab;
  --pop: #81665c;
  --pop-soft: #7d736f;
  --tile-sky: #81665c;
}
</style>

<section class="spotlight" aria-label="Project spotlight">
  <article class="spotlight__slide">
    <div class="spotlight__row">
      <p class="spotlight__line">Lift-off identity and motion for <b>Gasbag Air Tours</b></p>
      <p class="spotlight__meta spotlight__meta--wide">Brand Identity, Animation, Signage, Packaging, Web, Copywriting</p>
      <p class="spotlight__meta">High Desert</p>
      <p class="spotlight__meta">2026</p>
      <a class="spotlight__more" href="#">View Project</a>
    </div>
    <figure class="spotlight__card">
      <img class="spotlight__photo" src="assets/balloons-dawn.jpg" alt="Two striped balloons being filled on a field at dawn, a crew member beside them" width="1024" height="642">
      <span class="spotlight__hole spotlight__hole--a" aria-hidden="true"></span>
      <span class="spotlight__hole spotlight__hole--b" aria-hidden="true"></span>
      <span class="spotlight__hole spotlight__hole--c" aria-hidden="true"></span>
    </figure>
  </article>

  <article class="spotlight__slide spotlight__slide--flip">
    <div class="spotlight__row">
      <p class="spotlight__line">A painted homeware range for <b>Hollow Hill Ceramics</b></p>
      <p class="spotlight__meta spotlight__meta--wide">Packaging, Illustration, Print, Art Direction</p>
      <p class="spotlight__meta">Riverside</p>
      <p class="spotlight__meta">2025</p>
      <a class="spotlight__more" href="#">View Project</a>
    </div>
    <figure class="spotlight__card">
      <img class="spotlight__photo" src="assets/liberty-vase.jpg" alt="A wide glazed bowl painted with a face among white roses" width="800" height="570" loading="lazy">
      <span class="spotlight__hole spotlight__hole--a" aria-hidden="true"></span>
      <span class="spotlight__hole spotlight__hole--b" aria-hidden="true"></span>
      <span class="spotlight__hole spotlight__hole--c" aria-hidden="true"></span>
    </figure>
  </article>
</section>

<style>
  .spotlight {
    overflow: clip;
  }
  .spotlight__slide {
    --tilt: var(--card-tilt);
    --drift: 0px;
    position: relative;
    height: clamp(640px, 60vw, 880px);
  }
  .spotlight__slide--flip {
    --tilt: calc(var(--card-tilt) * -1);
  }
  .spotlight__row {
    position: sticky;
    top: 45%;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr) minmax(0, 0.8fr) minmax(0, 0.5fr) auto;
    align-items: center;
    column-gap: var(--gap);
    margin-top: 300px;
    padding: 0 var(--edge);
  }
  .spotlight__line,
  .spotlight__meta {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.15;
  }
  .spotlight__meta {
    color: var(--ink-soft);
  }
  .spotlight__more {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: var(--line);
    text-underline-offset: 3px;
  }
  .spotlight__more:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .spotlight__card {
    position: absolute;
    top: 150px;
    left: 50%;
    z-index: 1;
    width: min(66%, 940px);
    margin: 0;
    transform: translateX(calc(-50% + var(--drift))) rotate(var(--tilt));
    will-change: transform;
  }
  .spotlight__slide--flip .spotlight__card {
    width: min(54%, 760px);
  }
  .spotlight__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-fit: cover;
  }
  .spotlight__hole {
    position: absolute;
    width: var(--hole);
    height: var(--hole);
    border-radius: var(--radius-round);
    background: var(--paper);
  }
  .spotlight__hole--a { top: 18px; left: 18px; }
  .spotlight__hole--b { bottom: 18px; left: 18px; }
  .spotlight__hole--c { top: 18px; right: 18px; }

  @media (max-width: 56rem) {
    .spotlight__row {
      grid-template-columns: minmax(0, 1fr) auto;
      row-gap: var(--space-xs);
    }
    .spotlight__meta--wide { grid-column: 1 / -1; grid-row: 2; }
    .spotlight__meta:not(.spotlight__meta--wide) { display: none; }
    .spotlight__card,
    .spotlight__slide--flip .spotlight__card {
      width: 86%;
    }
  }
  @media (max-width: 40rem) {
    .spotlight__slide { height: 420px; }
    .spotlight__row { position: static; margin-top: 24px; }
    .spotlight__card { top: 112px; }
    .spotlight__hole { --hole: 14px; }
  }
</style>

<script>
(() => {
  const still = matchMedia('(prefers-reduced-motion: reduce)');
  for (const root of document.querySelectorAll('.spotlight')) {
    const slides = [...root.querySelectorAll('.spotlight__slide')];
    const live = new Set();
    let frame = 0;
    const base = parseFloat(getComputedStyle(root).getPropertyValue('--card-tilt')) || 4;

    const update = () => {
      frame = 0;
      const height = innerHeight;
      for (const slide of live) {
        const box = slide.getBoundingClientRect();
        const p = Math.max(0, Math.min(1, (height - box.top) / (height + box.height)));
        const sign = slide.classList.contains('spotlight__slide--flip') ? -1 : 1;
        slide.style.setProperty('--tilt', `${(sign * (base + (0.5 - p) * 10)).toFixed(2)}deg`);
        slide.style.setProperty('--drift', `${((0.5 - p) * 60 * sign).toFixed(1)}px`);
      }
    };
    const ask = () => { if (!frame) frame = requestAnimationFrame(update); };

    const watch = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (entry.isIntersecting) live.add(entry.target);
        else live.delete(entry.target);
      }
      if (!still.matches) ask();
    });
    slides.forEach((slide) => watch.observe(slide));
    if (!still.matches) addEventListener('scroll', ask, { passive: true });
  }
})();
</script>

Similar components

Curling film ribbon

Curling film ribbon

Matted device wall

Matted device wall

Single print viewer

Single print viewer

Red flood split

Red flood split

Location reel

Location reel

Treated cover rail

Treated cover rail

Scattered letter case

Scattered letter case

Night viewer

Night viewer