kitbash Sign in Connect agent
Components

Blur-in statement

A full black screen with a small sans wordmark and a three-line serif statement that sharpens out of a blur.

Part of the style

Line Screen Folio

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #d3b798;
  --night-raised: #ccb092;
  --night-warm: #422c11;
  --ivory: #392717;
  --ivory-soft: rgba(57, 39, 23, 0.62);
  --ivory-faint: rgba(57, 39, 23, 0.32);
  --rule: rgba(57, 39, 23, 0.16);
  --paper: #3b2919;
  --paper-shade: #453221;
  --ink: #cbb091;
  --ink-soft: #ae967b;
  --screen-ice: #b49d89;
  --black: #f0d4b4;
  --rule-faint: rgba(57, 39, 23, 0.06);
  --night-panel: #d1b697;
  --silver: #574230;
  --screen-blue: #aa8c71;
  --folder-deep: #a6988d;
  --screen-steel: #4f4943;
  --screen-night: #a09b95;
  --folder-light: #ded6cf;
  --screen-sepia: #66400d;
  --copper: #6e4201;
}
</style>

<section class="statement" aria-label="Opening statement">
  <header class="statement__bar">
    <span class="statement__spacer" aria-hidden="true"></span>
    <a class="statement__wordmark" href="#">quillmere<span class="statement__dot">.</span></a>
    <a class="statement__label" href="#">Studio folio</a>
  </header>
  <h1 class="statement__title">
    <span class="statement__line"><span class="statement__word">Patience</span></span>
    <span class="statement__line"><span class="statement__word">is</span></span>
    <span class="statement__line statement__line--italic"><span class="statement__word">inherited.</span></span>
  </h1>
  <button class="statement__replay" type="button" aria-label="Play the opening again">
    <span class="statement__replay-text">Replay</span>
  </button>
</section>

<style>
  .statement {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(560px, 56vw, 820px);
    padding: var(--space-m) var(--edge);
    background: var(--night);
    color: var(--ivory);
    overflow: hidden;
  }
  .statement__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .statement__wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
  }
  .statement__dot { color: var(--ivory-soft); }
  .statement__label {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ivory-soft);
    font-family: var(--font-sans);
    font-size: var(--text-s);
    letter-spacing: var(--track-label);
    text-decoration: none;
    transition: color var(--quick) ease-out;
  }
  .statement__label:hover,
  .statement__label:focus-visible { color: var(--ivory); }

  .statement__title {
    align-self: center;
    display: grid;
    justify-items: center;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    text-align: center;
  }
  .statement__line--italic { font-style: italic; letter-spacing: 0; }
  .statement__word {
    display: inline-block;
    opacity: 0;
    filter: blur(18px);
    transform: scale(1.04);
    transition:
      opacity var(--settle) var(--ease-slow),
      filter var(--settle) var(--ease-slow),
      transform calc(var(--settle) + 1s) var(--ease-slow);
    transition-delay: calc(var(--order, 0) * 260ms);
  }
  .statement.is-on .statement__word {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }

  .statement__replay {
    justify-self: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--space-s);
    border: 0;
    background: none;
    color: var(--ivory-faint);
    font-family: var(--font-sans);
    font-size: var(--text-s);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--quick) ease-out;
  }
  .statement__replay:hover,
  .statement__replay:focus-visible { color: var(--ivory); }
  .statement a:focus-visible,
  .statement__replay:focus-visible { outline: var(--line) solid var(--ivory); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    .statement__word { opacity: 1; filter: none; transform: none; transition: none; }
  }
</style>

<script>
  (() => {
    const play = (root) => {
      root.classList.remove('is-on');
      void root.offsetWidth;
      requestAnimationFrame(() => root.classList.add('is-on'));
    };
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        play(entry.target);
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.2 });
    for (const root of document.querySelectorAll('.statement')) {
      root.querySelectorAll('.statement__word').forEach((word, order) => word.style.setProperty('--order', order));
      root.querySelector('.statement__replay').addEventListener('click', () => play(root));
      seen.observe(root);
    }
  })();
</script>

Similar components

Print burst intro

Print burst intro

Spiral intro

Spiral intro

Yellow curtain opener

Yellow curtain opener

Block reveal intro

Block reveal intro

Thumbnail ring loader

Thumbnail ring loader

Lens-scale intro

Lens-scale intro

Ticker loader

Ticker loader

Opening

Opening