kitbash Sign in Connect agent
Components

Unboxing hero

The signature first screen: a peach retail box with a white line drawing of the device lying across the top, a frosted companion puck at the edge, frosted back and notify pills in the corners, and the first manual sheet with a face-o wordmark, tagline and welcome text. A black veil lifts on load, the box lifts on hover, and the notify pill opens a paper notice over a blurred table.

Part of the style

Owner's Manual on Marble

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Arimo:wght@500&family=Geist+Mono:wght@400;700&family=Lobster+Two:ital,wght@1,700&display=swap");
:root {
  --font-body: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
</style>

<section class="unboxing" aria-labelledby="unboxing-title">
  <button class="unboxing__box" type="button" aria-pressed="false" aria-label="Lift the box">
    <span class="unboxing__lid" aria-hidden="true"></span>
    <svg class="unboxing__print" viewBox="0 0 760 620" aria-hidden="true">
      <g class="unboxing__lines">
        <rect x="150" y="70" width="560" height="470" rx="46"></rect>
        <circle cx="300" cy="200" r="86"></circle>
        <path d="M232 184 L372 160 M228 228 L368 204"></path>
        <circle cx="343" cy="166" r="6"></circle>
        <rect x="420" y="100" width="34" height="250" rx="17"></rect>
        <rect x="430" y="118" width="14" height="96" rx="7"></rect>
        <rect x="480" y="96" width="196" height="120" rx="18"></rect>
        <rect x="480" y="230" width="196" height="120" rx="18"></rect>
        <circle cx="578" cy="290" r="30"></circle>
        <path d="M566 296 l10 -18 l10 18 z"></path>
        <rect x="560" y="138" width="36" height="36" rx="8"></rect>
        <path d="M570 152 h16 M570 160 h10"></path>
        <circle cx="300" cy="420" r="52"></circle>
        <circle cx="300" cy="420" r="38"></circle>
        <path d="M286 420 a14 14 0 0 1 28 0"></path>
        <rect x="190" y="290" width="46" height="120" rx="23"></rect>
        <rect x="246" y="300" width="46" height="120" rx="23"></rect>
        <rect x="420" y="390" width="256" height="110" rx="14"></rect>
        <path d="M444 446 h208"></path>
        <circle cx="520" cy="446" r="11"></circle>
      </g>
      <g class="unboxing__dots">
        <circle cx="392" cy="98" r="5"></circle>
        <circle cx="392" cy="262" r="5"></circle>
        <circle cx="210" cy="104" r="5"></circle>
      </g>
      <text class="unboxing__lettering" x="213" y="358" transform="rotate(-90 213 358)">TIMER</text>
      <text class="unboxing__lettering" x="269" y="372" transform="rotate(-90 269 372)">STEAM</text>
      <text class="unboxing__spine" x="96" y="70" transform="rotate(90 96 70)">THE KETTLE-WATCH INSTRUMENT</text>
    </svg>
  </button>

  <a class="unboxing__pill unboxing__pill--back" href="#">
    <svg class="unboxing__pill-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 14 4 9l5-5"></path><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"></path></svg>
    Back
  </a>
  <button class="unboxing__pill unboxing__pill--notify" type="button" aria-haspopup="dialog">Get notified</button>

  <dialog class="unboxing__notice" aria-labelledby="unboxing-notice-title">
    <form class="unboxing__close-form" method="dialog">
      <button class="unboxing__close" type="submit" aria-label="Close">
        <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 7l10 10M17 7 7 17"></path></svg>
      </button>
    </form>
    <p class="unboxing__notice-mark" aria-hidden="true">L<svg class="unboxing__o" viewBox="0 0 60 60"><circle cx="30" cy="30" r="25.5"></circle><circle class="unboxing__pupil" cx="21.5" cy="33" r="5"></circle><circle class="unboxing__pupil" cx="38.5" cy="33" r="5"></circle></svg>ll</p>
    <h2 class="unboxing__notice-title" id="unboxing-notice-title">Still on the drawing board</h2>
    <p class="unboxing__notice-text"><b>Loll is a made-up object.</b> This page is a style study for a product that waits as patiently as you do. If one ever ships, the kettle will be the first to know.</p>
    <div class="unboxing__notice-actions">
      <a class="unboxing__notice-link" href="#">Read the small print</a>
      <form method="dialog"><button class="unboxing__pill" type="submit">Keep me posted</button></form>
    </div>
  </dialog>

  <span class="unboxing__puck" aria-hidden="true">
    <span class="unboxing__puck-face"><span class="unboxing__eye"></span><span class="unboxing__eye"></span></span>
  </span>

  <article class="unboxing__sheet">
    <div class="unboxing__band"></div>
    <div class="unboxing__body">
      <header class="unboxing__head">
        <h1 class="unboxing__wordmark" id="unboxing-title" aria-label="Loll">L<svg class="unboxing__o" viewBox="0 0 60 60" aria-hidden="true"><circle cx="30" cy="30" r="25.5"></circle><circle class="unboxing__pupil" cx="21.5" cy="33" r="5"></circle><circle class="unboxing__pupil" cx="38.5" cy="33" r="5"></circle></svg>ll<span class="unboxing__mark" aria-hidden="true"><span class="unboxing__mark-letter">K</span></span></h1>
        <p class="unboxing__tagline">
          <span class="unboxing__pair">Wait <svg class="unboxing__arrow" viewBox="0 0 22 12" aria-hidden="true"><path d="M1 6h19M15 1l5 5-5 5"></path></svg> Loll</span>
          <span class="unboxing__sub">The kettle-watcher&rsquo;s best friend</span>
        </p>
      </header>

      <h2 class="unboxing__title">Unboxed</h2>
      <p class="unboxing__text">You are now the keeper of a genuine <b>Loll&trade;</b>.</p>
      <p class="unboxing__text">The Kettle-Watch Instrument keeps your hands busy in the long minutes between pressing the switch and hearing the click. <b>Loll&trade;</b> is built for the gentle art of waiting on things that will not hurry: kettles, uploads, toast and replies that only say typing.</p>
    </div>
  </article>

  <span class="unboxing__veil" aria-hidden="true"></span>
</section>

<style>
  .unboxing {
    position: relative;
    overflow: hidden;
    padding: clamp(220px, 21vw, 300px) var(--space-m) 0;
    background: var(--marble) var(--marble-texture) center top / cover;
    isolation: isolate;
  }

  .unboxing__box {
    position: absolute;
    z-index: 2;
    top: clamp(-430px, -24vw, -150px);
    left: 50%;
    width: clamp(560px, 72vw, 1040px);
    aspect-ratio: 1040 / 620;
    margin-left: clamp(-280px, -20vw, -150px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-box);
    background: var(--box-orange);
    box-shadow: var(--shadow-box);
    cursor: pointer;
    rotate: -20deg;
    transition: translate var(--t-lift) var(--ease-lift);
    -webkit-tap-highlight-color: transparent;
  }
  .unboxing__box:hover,
  .unboxing__box.is-lifted { translate: 0 -10px; }
  .unboxing__box:focus-visible { outline: var(--rule) solid var(--box-line); outline-offset: -8px; }
  .unboxing__lid {
    position: absolute;
    inset: 0 0 0 73%;
    border-radius: 0 var(--radius-box) var(--radius-box) 0;
    background: var(--dimple-texture), var(--device-case);
    box-shadow: inset 7px 0 18px -5px rgba(0, 0, 0, 0.22), inset 1px 0 0 var(--frost-edge);
  }
  .unboxing__print {
    position: absolute;
    inset: 0 27% 0 0;
    width: 73%;
    height: 100%;
  }
  .unboxing__lines {
    fill: none;
    stroke: var(--box-line);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .unboxing__dots { fill: var(--box-line); }
  .unboxing__lettering,
  .unboxing__spine {
    fill: var(--box-line);
    font: 200 12px var(--font-mono);
    letter-spacing: var(--print-track);
  }
  .unboxing__spine { font-size: 14px; letter-spacing: 0.55em; }

  .unboxing__pill {
    position: relative;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 10px 25px;
    border: 0;
    border-top: var(--rule) solid var(--frost-edge);
    border-radius: var(--radius-pill);
    background: var(--frost);
    box-shadow: var(--shadow-pill);
    color: var(--ink-full);
    font: 600 var(--text-label) / 1 var(--font-body);
    letter-spacing: var(--label-track);
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.74);
    cursor: pointer;
    transition: transform var(--t-press) var(--ease-press);
    -webkit-tap-highlight-color: transparent;
  }
  .unboxing__pill:hover { background: var(--paper-hover); }
  .unboxing__pill:active { transform: scale(0.9); }
  .unboxing__pill:focus-visible { outline: var(--rule) solid var(--signal); outline-offset: 3px; }
  .unboxing__pill--back,
  .unboxing__pill--notify {
    position: absolute;
    z-index: 5;
    top: 16px;
  }
  .unboxing__pill--back {
    left: 16px;
    animation: unboxing-late var(--t-late) ease forwards;
  }
  .unboxing__pill--notify { right: 16px; }
  .unboxing__pill-icon {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  @keyframes unboxing-late {
    0%, 50% { opacity: 0; }
    100% { opacity: 1; }
  }

  .unboxing__notice {
    width: calc(100% - 32px);
    max-width: 480px;
    margin: auto;
    padding: 56px 25px 25px;
    border: 0;
    border-radius: var(--radius-sheet);
    background: var(--paper) var(--paper-texture);
    box-shadow: var(--shadow-sheet);
    color: var(--ink-light);
    font: 400 var(--text-small) / 1.4 var(--font-body);
  }
  .unboxing__notice[open] { animation: unboxing-fade-in var(--t-notice) ease forwards; }
  .unboxing__notice::backdrop {
    background: var(--scrim);
    animation: unboxing-scrim-blur var(--t-notice) ease forwards;
  }
  @keyframes unboxing-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes unboxing-scrim-blur {
    from { backdrop-filter: blur(0); }
    to { backdrop-filter: blur(5px); }
  }
  .unboxing__close-form { margin: 0; }
  .unboxing__close {
    position: absolute;
    top: 11px;
    right: 11px;
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-light);
    cursor: pointer;
    transition: transform var(--t-press) var(--ease-press);
  }
  .unboxing__close svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border: 1px solid var(--edge-grey);
    border-radius: var(--radius-pill);
    background: var(--frost);
    box-shadow: inset 0 3px 10px 3px rgba(255, 255, 255, 0.57);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .unboxing__close:hover { color: var(--ink-dark); }
  .unboxing__close:active { transform: scale(0.9); }
  .unboxing__close:focus-visible { outline: none; }
  .unboxing__close:focus-visible svg { outline: var(--rule) solid var(--signal); outline-offset: 2px; }
  .unboxing__notice-mark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 0 0 36px;
    color: var(--ink-dark);
    font: 400 64px / 1 var(--font-body);
    letter-spacing: -0.035em;
  }
  .unboxing__notice-title {
    margin: 0 0 8px;
    color: var(--ink-dark);
    font: 500 var(--text-body) / 1.3 var(--font-body);
  }
  .unboxing__notice-text { margin: 0 0 28px; }
  .unboxing__notice-text b { color: var(--ink-dark); }
  .unboxing__notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
  }
  .unboxing__notice-actions form { margin: 0; }
  .unboxing__notice-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--signal);
    font-size: var(--text-label);
    font-weight: 600;
    text-decoration: none;
  }
  .unboxing__notice-link:hover { text-decoration: underline; }
  .unboxing__notice-link:focus-visible { outline: var(--rule) solid var(--signal); outline-offset: 2px; }

  .unboxing__puck {
    position: absolute;
    z-index: 3;
    top: clamp(470px, 36vw, 500px);
    left: max(-180px, calc(50% - 695px));
    display: grid;
    place-items: center;
    width: 316px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.3) 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 -6px 10px rgba(0, 0, 0, 0.08), 8px 14px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
  }
  .unboxing__puck::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--device-case);
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(0, 0, 0, 0.12);
  }
  .unboxing__puck-face {
    position: relative;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    width: 236px;
    height: 202px;
    padding: 0 0 22px 6px;
    overflow: hidden;
    border-radius: 48% 52% 46% 54% / 52% 48% 52% 48%;
    background: linear-gradient(170deg, #e0e0e3, #eaeaec 60%, #f2f2f3);
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.12);
  }
  .unboxing__puck-face::after {
    content: "";
    position: absolute;
    inset: -20% 30% -20% -40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45) 60%, transparent);
    rotate: 24deg;
  }
  .unboxing__eye {
    width: 52px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--device-case);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  }
  .unboxing__eye + .unboxing__eye { translate: 0 -16px; }

  .unboxing__sheet {
    position: relative;
    z-index: 1;
    max-width: var(--sheet-width);
    margin: 0 auto;
    padding: 0 var(--gutter-outer);
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    background: var(--paper) var(--paper-texture);
    box-shadow: var(--shadow-sheet);
  }
  .unboxing__band {
    height: var(--band);
    border: solid var(--ink-lightest);
    border-width: 0 var(--rule) var(--rule);
  }
  .unboxing__body {
    padding: var(--space-xl) var(--gutter-inner) 72px;
    border: solid var(--ink-lightest);
    border-width: 0 var(--rule);
  }
  .unboxing__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m) clamp(40px, 9vw, 120px);
    align-items: center;
    margin-bottom: clamp(72px, 9vw, 130px);
  }
  .unboxing__wordmark,
  .unboxing__notice-mark {
    position: relative;
    display: flex;
    align-items: baseline;
  }
  .unboxing__wordmark {
    margin: 0;
    padding-right: 0.3em;
    color: var(--ink-dark);
    font: 400 var(--wordmark) / 1 var(--font-body);
    letter-spacing: -0.035em;
  }
  .unboxing__o {
    width: 0.56em;
    height: 0.56em;
    margin: 0 0.035em 0 0.02em;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 7.4;
  }
  .unboxing__pupil { fill: currentColor; stroke: none; }
  .unboxing__mark {
    position: absolute;
    top: 0.03em;
    right: 0.02em;
    display: grid;
    place-items: center;
    width: 0.22em;
    height: 0.22em;
    border: 0.024em solid currentColor;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }
  .unboxing__mark-letter { font-size: 0.12em; }
  .unboxing__tagline {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: var(--text-small);
    line-height: 1.4;
  }
  .unboxing__pair {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink-dark);
  }
  .unboxing__arrow {
    width: 20px;
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .unboxing__title {
    margin: 0 0 var(--space-m);
    padding-bottom: var(--space-m);
    color: var(--ink-dark);
    font: 700 var(--title-l) / normal var(--font-mono);
    letter-spacing: var(--title-track);
    text-transform: uppercase;
  }
  .unboxing__text {
    max-width: 30em;
    margin: 0 0 15px;
    font-size: var(--text-body);
    line-height: var(--leading-body);
    text-wrap: pretty;
  }
  .unboxing__text b { color: var(--ink-dark); font-weight: 700; }

  .unboxing__veil {
    position: absolute;
    inset: 0;
    z-index: 9;
    background: var(--veil);
    pointer-events: none;
    animation: unboxing-fade-out var(--t-veil) linear forwards;
  }
  @keyframes unboxing-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  @media (max-width: 600px) {
    .unboxing { padding-inline: 12px; }
    .unboxing__box { margin-left: -330px; top: -170px; }
    .unboxing__puck { left: -256px; top: 470px; }
    .unboxing__head { margin-bottom: 64px; }
    .unboxing__pill--back { left: 12px; }
    .unboxing__pill--notify { right: 12px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .unboxing__veil { display: none; }
    .unboxing__pill--back { animation: none; }
    .unboxing__box { transition: none; }
  }
</style>

<script>
(() => {
  function isOutside(element, event) {
    const rect = element.getBoundingClientRect();
    return event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom;
  }

  document.querySelectorAll('.unboxing').forEach((root) => {
    const box = root.querySelector('.unboxing__box');
    const notify = root.querySelector('.unboxing__pill--notify');
    const notice = root.querySelector('.unboxing__notice');

    box.addEventListener('click', () => {
      const lifted = box.classList.toggle('is-lifted');
      box.setAttribute('aria-pressed', String(lifted));
    });
    notify.addEventListener('click', () => notice.showModal());
    notice.addEventListener('click', (event) => {
      if (event.target === notice && isOutside(notice, event)) notice.close();
    });
  });
})();
</script>

Similar components

Hero with device panel

Hero with device panel

Masthead

Masthead

Haze hero

Haze hero

Screensaver deck

Screensaver deck

Film reel

Film reel

Glass word with falling stickers

Glass word with falling stickers

3D hero scene

3D hero scene

Error screen

Error screen