kitbash Sign in Connect agent
Components

Fanned feature cards

Three pastel cards with arced heavy caps, a big faded numeral and a short line, fanning out from a stack on view.

Part of the style

Tile Ring Blackroom

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #7d837b;
  --night-raised: #6c726b;
  --night-chip: #636862;
  --white: #121212;
  --card: #151515;
  --ink: #7d837b;
  --ash: #171614;
  --line: #60655e;
  --line-light: #1c1c1b;
  --lime: #280c02;
  --chartreuse: #3c1e11;
  --mint: #412014;
  --sky: #3e1f13;
}
</style>

<section class="fan">
  <h2 class="fan__heading">Made to fit any garden</h2>
  <ul class="fan__deck">
    <li class="fan__card fan__card--one">
      <svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Easy to start">
        <path id="fan-arc-1" d="M0 104 Q150 4 300 104" fill="none"/>
        <text><textPath href="#fan-arc-1" startOffset="50%" text-anchor="middle">EASY TO START</textPath></text>
      </svg>
      <span class="fan__numeral" aria-hidden="true">1</span>
      <p class="fan__text">Dig in on day one. Every packet is chosen for a first season, so a windowsill is enough.</p>
    </li>
    <li class="fan__card fan__card--two">
      <svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Send it back">
        <path id="fan-arc-2" d="M0 104 Q150 4 300 104" fill="none"/>
        <text><textPath href="#fan-arc-2" startOffset="50%" text-anchor="middle">SEND IT BACK</textPath></text>
      </svg>
      <span class="fan__numeral" aria-hidden="true">2</span>
      <p class="fan__text">Save a few seeds at harvest and post them home in the return sleeve.</p>
    </li>
    <li class="fan__card fan__card--three">
      <svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Local and hardy">
        <path id="fan-arc-3" d="M0 104 Q150 4 300 104" fill="none"/>
        <text><textPath href="#fan-arc-3" startOffset="50%" text-anchor="middle">LOCAL &amp; HARDY</textPath></text>
      </svg>
      <span class="fan__numeral" aria-hidden="true">3</span>
      <p class="fan__text">Grown out on members' plots for years, so each line knows your weather.</p>
    </li>
  </ul>
</section>

<style>
  .fan {
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    padding: var(--section-space) var(--edge);
    overflow: hidden;
    background: var(--night);
    color: var(--white);
  }
  .fan__heading {
    margin: 0;
    font: var(--weight) var(--display-m)/var(--leading-tight) var(--font-display);
    letter-spacing: var(--track-tight);
    text-align: center;
  }
  .fan__deck {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 260px);
    justify-content: center;
    margin: 0;
    padding: var(--space-m) 0;
    list-style: none;
  }
  .fan__card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: var(--space-xs);
    aspect-ratio: 5 / 6;
    padding: var(--space-m) var(--space-m) var(--space-l);
    border-radius: var(--radius-l);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-card);
    translate: var(--x, 0) var(--y, 0);
    rotate: var(--r, 0deg);
    transition: translate var(--slow) var(--ease-out), rotate var(--slow) var(--ease-out);
  }
  .fan__card--one { --x: 40px; --y: 18px; --r: -8deg; background: var(--mint); z-index: 1; }
  .fan__card--two { --x: 0px; --y: 0px; --r: 0deg; background: var(--chartreuse); z-index: 2; }
  .fan__card--three { --x: -40px; --y: 12px; --r: 6deg; background: var(--sky); z-index: 3; }
  .fan.is-stacked .fan__card--one { --x: 260px; --r: -2deg; }
  .fan.is-stacked .fan__card--three { --x: -260px; --r: 2deg; }
  .fan__card:hover { --y: -14px; z-index: 4; }
  .fan__arc {
    width: 100%;
    overflow: visible;
  }
  .fan__arc text {
    fill: currentColor;
    font: 800 24px/1 var(--font-poster);
    font-stretch: 125%;
  }
  .fan__numeral {
    font: var(--weight) clamp(72px, 8vw, 110px)/1 var(--font-display);
    letter-spacing: var(--track-tight);
    opacity: 0.28;
  }
  .fan__text {
    max-width: 22ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
  }

  @media (max-width: 860px) {
    .fan__deck { grid-template-columns: minmax(0, 300px); gap: 0; }
    .fan__card { aspect-ratio: auto; padding-bottom: var(--space-m); }
    .fan__card--one { --x: 0px; --y: 0px; --r: -4deg; }
    .fan__card--two { --x: 0px; --y: -10px; --r: 3deg; }
    .fan__card--three { --x: 0px; --y: -20px; --r: -2deg; }
    .fan.is-stacked .fan__card--one,
    .fan.is-stacked .fan__card--three { --x: 0px; }
  }
</style>

<script>
(() => {
  if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
  for (const root of document.querySelectorAll('.fan')) {
    const box = root.getBoundingClientRect();
    if (box.top < innerHeight && box.bottom > 0) continue;
    root.classList.add('is-stacked');
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        root.classList.remove('is-stacked');
        seen.disconnect();
      }
    }, { threshold: 0.3 });
    seen.observe(root);
  }
})();
</script>

Similar components

Coming-soon card

Coming-soon card

Three-up long tail

Three-up long tail

Two-up entry cards

Two-up entry cards

Offer panel

Offer panel

Triage queue window

Triage queue window

Latest notes

Latest notes

Use case columns

Use case columns

Stacked step sheets

Stacked step sheets