kitbash Sign in Connect agent
Components

Doodled wordmark with x-ray

A huge hand-lettered name among scattered doodles that draw themselves in; the magnifier toggles an inspector view of every box.

Part of the style

Blue Biro Doodles

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

Preview

Code
<section class="hero">
  <div class="hero__stage hero__box" data-tag="main">
    <div class="hero__center hero__box" data-tag="div">
      <h1 class="hero__title hero__box" data-tag="h1">
        <span class="hero__line hero__line--one hero__box" data-tag="span">Tumble</span>
        <span class="hero__line hero__line--two hero__box" data-tag="span">Kiln</span>
      </h1>
      <p class="hero__tagline hero__box" data-tag="p">small batch stoneware, thrown on thursdays</p>
    </div>

    <a class="hero__doodle hero__box" data-tag="a" href="#" aria-label="Shop the shelf" style="left: 15%; top: 7%; --lean: -8deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 2" d="M16 10.5 L32.5 10 M17.5 10.6 C17.4 13.4 19.2 14.2 19 16.2 C12 20.4 10.2 30.4 15.2 37 C18.4 41.2 29.8 41 33 37.2 C38.2 30.6 36.4 20.2 29.2 16 C29 14 30.8 13.2 30.6 10.4 M13.8 27.4 C20 29.4 28.2 29 34.4 26.6" />
      </svg>
    </a>
    <a class="hero__doodle hero__box" data-tag="a" href="#" aria-label="Read the notes" style="left: 76%; top: 13%; --lean: 12deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 3" d="M12 16.4 L14.2 38 C15 41.2 31 41.4 32 38.2 L34.2 16 Z M33.4 21.2 C41.2 21 41.4 32.2 32.2 31.2 M20 11.4 C18 8.2 22.2 6 20.2 3 M26.4 11.2 C24.2 8 28.4 6 26.4 3.2" />
      </svg>
    </a>
    <span class="hero__doodle hero__box" data-tag="svg" style="left: 3%; top: 56%; --lean: 0deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 4" d="M24 24 C26 22 28.2 25 26 27.2 C23 30.2 18.8 26 21 22 C24 17 32.2 20 31.2 27.2 C30 34.4 18 35 16 27 C14 18 25 12 33.4 16" />
      </svg>
    </span>
    <button class="hero__toggle hero__doodle hero__box" data-tag="button" type="button" aria-pressed="false" aria-label="Show the boxes" style="right: 5%; top: 57%; --lean: -6deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 5" d="M30 20 C30.2 26 26 30.2 20 30 C14 30.2 9.8 26 10 20 C9.8 14 14 9.8 20 10.2 C26 9.8 30.2 14 30 20 Z M27.6 27.4 L39.2 39 M15 17.4 C15.8 15.4 17.4 14.4 19.4 14.2" />
      </svg>
    </button>
    <span class="hero__hint hero__box" data-tag="span" aria-hidden="true" style="right: 3%; top: 72%">
      <svg class="hero__ink hero__arrow" viewBox="0 0 48 32">
        <path pathLength="1" style="--i: 6" d="M6 28 C10 18 20 10 34 6 M27 3.6 L34.4 6 L29.6 12" />
      </svg>
      look inside
    </span>
    <a class="hero__doodle hero__box" data-tag="a" href="#" aria-label="Write to the studio" style="left: 32%; top: 82%; --lean: 6deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 7" d="M24.2 6 L28.2 19.4 L42 19 L31 27.4 L35.2 41 L24 32.2 L13 41.2 L17.2 27 L6 19.2 L20 19.2 Z" />
      </svg>
    </a>
    <span class="hero__doodle hero__box" data-tag="svg" style="left: 58%; top: 85%; --lean: 0deg">
      <svg class="hero__ink" viewBox="0 0 48 48" aria-hidden="true">
        <path pathLength="1" style="--i: 8" d="M15 14.4 L33.6 35 M34.6 13.2 C26 20 19.4 28.4 13.4 36" />
      </svg>
    </span>
  </div>
</section>

<style>
  .hero {
    padding: var(--space-m) var(--edge) var(--section-space);
  }
  .hero__stage {
    position: relative;
    max-width: 920px;
    min-height: clamp(470px, 56vw, 600px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-inline: var(--rule) solid transparent;
  }
  .hero__center {
    display: grid;
    justify-items: center;
    gap: var(--space-m);
    padding: var(--space-m);
  }
  .hero__title {
    display: grid;
    margin: 0;
    font-family: var(--font-hand);
    font-size: var(--hand-xl);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
  }
  .hero__line {
    display: block;
    width: max-content;
    clip-path: inset(-25% 100% -25% -8%);
    animation: hero-wipe 800ms var(--ease-pen) 150ms forwards;
  }
  .hero__line--two {
    margin-left: 0.9em;
    rotate: -1.5deg;
    animation-delay: 420ms;
  }
  .hero__tagline {
    margin: 0;
    max-width: 22ch;
    font-size: var(--text-m);
    font-style: italic;
    text-align: center;
    color: var(--ink-soft);
  }

  .hero__doodle {
    position: absolute;
    display: grid;
    place-items: center;
    width: var(--hit);
    height: var(--hit);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background-color: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    rotate: var(--lean, 0deg);
    transition: outline-color var(--quick) var(--ease), background-color var(--quick) var(--ease);
  }
  span.hero__doodle {
    cursor: default;
  }
  .hero__ink {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--ink);
    stroke-width: var(--stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
  }
  .hero__ink path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hero-draw var(--draw) var(--ease-pen) calc(var(--i, 0) * 90ms + 300ms) forwards;
  }
  .hero__hint {
    position: absolute;
    display: grid;
    justify-items: start;
    font-family: var(--font-hand);
    font-size: 22px;
    line-height: 1;
    rotate: -4deg;
  }
  .hero__arrow {
    width: 40px;
    height: 26px;
    margin-left: 26px;
    rotate: -70deg;
  }

  /* Every box rings on hover, like the source's links. */
  .hero__box {
    position: relative;
    outline: var(--rule) solid transparent;
    outline-offset: 0;
  }
  .hero__doodle,
  .hero__hint {
    position: absolute;
  }
  .hero__stage {
    position: relative;
  }
  a.hero__doodle:hover,
  a.hero__doodle:focus-visible,
  .hero__toggle:hover,
  .hero__toggle:focus-visible {
    outline-color: var(--ink);
    background-color: var(--ink-wash);
  }

  /* X-ray: every box shows its outline, a wash and its tag. */
  .hero__box::before {
    content: attr(data-tag);
    position: absolute;
    left: calc(var(--rule) * -1);
    bottom: 100%;
    padding: 1px var(--space-xs);
    background: var(--ink);
    color: var(--paper);
    font: 500 10px/13px var(--font-tag);
    letter-spacing: 0.02em;
    rotate: calc(var(--lean, 0deg) * -1);
    transform-origin: 0 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--quick) var(--ease);
  }
  .hero.is-xray .hero__box {
    outline-color: var(--ink);
    background-color: var(--ink-wash);
    border-radius: var(--radius-none);
  }
  .hero.is-xray .hero__box::before {
    opacity: 1;
  }
  .hero.is-xray .hero__stage {
    border-inline-color: var(--ink);
  }
  .hero.is-xray .hero__stage::before {
    left: 0;
    bottom: auto;
    top: 0;
  }
  .hero__box,
  .hero__stage {
    transition: outline-color var(--quick) var(--ease), background-color var(--quick) var(--ease), border-color var(--quick) var(--ease);
  }

  @keyframes hero-draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes hero-wipe {
    to { clip-path: inset(-25% -8% -25% -8%); }
  }

  @media (max-width: 40rem) {
    .hero__stage {
      min-height: 480px;
    }
    .hero__line--two {
      margin-left: 0.5em;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__ink path,
    .hero__line {
      animation-delay: 0s;
    }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.hero')) {
    const toggle = root.querySelector('.hero__toggle');
    if (!toggle) continue;
    toggle.addEventListener('click', () => {
      const on = root.classList.toggle('is-xray');
      toggle.setAttribute('aria-pressed', String(on));
      toggle.setAttribute('aria-label', on ? 'Hide the boxes' : 'Show the boxes');
    });
  }
})();
</script>

Similar components

Stage and inspector

Stage and inspector

Hero with stage accordion

Hero with stage accordion

Painted desktop

Painted desktop

Stamp sheet

Stamp sheet

Statement with picture trail

Statement with picture trail

Stacked confession

Stacked confession

Masthead

Masthead

Lobby Kiosk

Lobby Kiosk