kitbash Sign in Connect agent
Components

Jelly wordmark

Four huge translucent mint letters stepped down a diagonal, extruded, with a glossy ring threaded through them that drifts and leans to the pointer.

Part of the style

Mint Jelly Letters

7 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=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap");
:root {
  --font-display: "Tinos", "Times New Roman", Times, serif;
  --font-body: "Tinos", "Times New Roman", Times, serif;
}
</style>

<header class="hero">
  <div class="hero__stage">
    <div class="hero__ring hero__ring--back" aria-hidden="true">
      <svg class="hero__ring-art" viewBox="0 0 400 200" focusable="false">
        <defs>
          <linearGradient id="hero-jelly" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" style="stop-color: var(--mint-pale)" />
            <stop offset="0.45" style="stop-color: var(--mint)" />
            <stop offset="1" style="stop-color: var(--mint-shade)" />
          </linearGradient>
        </defs>
        <ellipse class="hero__ring-body" cx="200" cy="100" rx="164" ry="62" />
        <ellipse class="hero__ring-shade" cx="200" cy="108" rx="164" ry="62" />
        <ellipse class="hero__ring-gloss" cx="200" cy="90" rx="160" ry="58" />
      </svg>
    </div>

    <h1 class="hero__mark" aria-label="Hums">
      <span class="hero__letter" data-letter="H" style="--i: 0">H</span><span class="hero__letter" data-letter="U" style="--i: 1">U</span><span class="hero__letter" data-letter="M" style="--i: 2">M</span><span class="hero__letter" data-letter="S" style="--i: 3">S</span>
    </h1>

    <div class="hero__ring hero__ring--front" aria-hidden="true">
      <svg class="hero__ring-art" viewBox="0 0 400 200" focusable="false">
        <ellipse class="hero__ring-body" cx="200" cy="100" rx="164" ry="62" />
        <ellipse class="hero__ring-shade" cx="200" cy="108" rx="164" ry="62" />
        <ellipse class="hero__ring-gloss" cx="200" cy="90" rx="160" ry="58" />
      </svg>
    </div>
  </div>
  <p class="hero__line">Sound, stage &amp; night school <span class="hero__dot" aria-hidden="true"></span> 2019 – 2025</p>
</header>

<style>
  .hero {
    --lean: 0deg;
    --shift: 0px;
    display: grid;
    justify-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--edge) var(--section-space);
    overflow: hidden;
  }
  .hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: var(--measure);
    padding: calc(var(--display) * 0.2) 0 calc(var(--display) * 0.95);
  }

  /* The letters: light geometric caps, stepped down a diagonal, extruded in pale mint. */
  .hero__mark {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display);
    font-weight: var(--weight-light);
    line-height: 0.8;
    letter-spacing: 0;
    color: var(--mint);
  }
  .hero__letter {
    position: relative;
    display: block;
    padding: 0 0.015em;
    transform: translateY(calc(var(--i) * 0.3em));
    text-shadow:
      0.006em 0.006em 0 var(--mint-pale),
      0.012em 0.012em 0 var(--mint-pale),
      0.018em 0.018em 0 var(--mint-pale),
      0.024em 0.024em 0 var(--mint-pale),
      0.03em 0.03em 0 var(--mint-deep),
      0.05em 0.07em 0.08em var(--veil);
    animation: hero-drop var(--drop) var(--ease-jelly) calc(var(--i) * var(--stagger)) both;
  }
  /* A sheen across the top left of each face. */
  .hero__letter::after {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    padding: inherit;
    color: transparent;
    text-shadow: none;
    background: linear-gradient(155deg, var(--gloss) 0%, transparent 38%, transparent 70%, var(--veil) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
  }

  /* The ring is drawn twice: its far half behind the letters, its near half in front. */
  .hero__ring {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(88%, calc(var(--display) * 2.7));
    transform: translate(-50%, -50%) translate(var(--shift), 0) rotate(calc(-16deg + var(--lean)));
    transition: transform var(--mid) var(--ease);
    pointer-events: none;
  }
  .hero__ring--back {
    z-index: 0;
    clip-path: inset(0 0 50% 0);
  }
  .hero__ring--front {
    z-index: 2;
    clip-path: inset(50% 0 0 0);
  }
  .hero__ring-art {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 10px 12px var(--veil));
    animation:
      hero-pop 700ms var(--ease-jelly) 480ms both,
      hero-float var(--float) ease-in-out 1200ms infinite;
  }
  .hero.is-paused .hero__ring-art {
    animation-play-state: paused;
  }
  .hero__ring-body {
    fill: none;
    stroke: url(#hero-jelly);
    stroke-width: 26;
    opacity: 0.85;
  }
  .hero__ring-shade {
    fill: none;
    stroke: var(--mint-shade);
    stroke-width: 10;
    stroke-dasharray: 260 900;
    stroke-dashoffset: -60;
    opacity: 0.35;
  }
  .hero__ring-gloss {
    fill: none;
    stroke: var(--gloss);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 140 520 60 900;
    stroke-dashoffset: 380;
  }

  .hero__line {
    margin: 0;
    color: var(--mint-deep);
    font-size: var(--text-label);
    font-weight: var(--weight-name);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    text-align: center;
  }
  .hero__dot {
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin: 0 0.5em 0.12em;
    border-radius: var(--pill);
    background: var(--mint);
    box-shadow: inset 0 -2px 3px var(--veil);
    vertical-align: middle;
  }

  @keyframes hero-drop {
    from { translate: 0 -1.1em; opacity: 0; }
    35% { opacity: 1; }
    to { translate: 0 0; opacity: 1; }
  }
  @keyframes hero-pop {
    from { scale: 0.55; opacity: 0; }
    to { scale: 1; opacity: 1; }
  }
  @keyframes hero-float {
    0%, 100% { rotate: 0deg; translate: 0 0; }
    50% { rotate: 7deg; translate: 0 -3%; }
  }

  @media (max-width: 40rem) {
    .hero { --display: clamp(84px, 24vw, 140px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__letter, .hero__ring-art { animation: none; }
    .hero__ring { transition: none; }
  }
</style>

<script>
(() => {
  const still = window.matchMedia('(prefers-reduced-motion: reduce)');
  for (const root of document.querySelectorAll('.hero')) {
    const watch = new IntersectionObserver(([entry]) => {
      root.classList.toggle('is-paused', !entry.isIntersecting);
    });
    watch.observe(root);
    root.addEventListener('pointermove', (event) => {
      if (still.matches || event.pointerType !== 'mouse') return;
      const box = root.getBoundingClientRect();
      const x = (event.clientX - box.left) / box.width - 0.5;
      root.style.setProperty('--lean', `${(x * 10).toFixed(2)}deg`);
      root.style.setProperty('--shift', `${(x * 24).toFixed(1)}px`);
    });
    root.addEventListener('pointerleave', () => {
      root.style.setProperty('--lean', '0deg');
      root.style.setProperty('--shift', '0px');
    });
  }
})();
</script>

Similar components

Sky wordmark hero

Sky wordmark hero

Black and grey diptych

Black and grey diptych

Entry sheet

Entry sheet

Split hero

Split hero

Spectrum letters hero

Spectrum letters hero

Floating field hero

Floating field hero

Swapping chip wordmark

Swapping chip wordmark

Spring headline

Spring headline