> ## Documentation Index
> Fetch the complete documentation index at: https://hyperframes.heygen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logo Brand Close

> A display-scale wordmark cascades letter by letter into a centered lockup, the accent brand period lands last, an optional tagline and wide-tracked mono URL settle beneath, and the finished identity holds dead still to the end of the film.

export const InstallCommand = ({command}) => {
  const [copied, setCopied] = React.useState(false);
  const copy = async () => {
    try {
      if (navigator.clipboard && window.isSecureContext) {
        await navigator.clipboard.writeText(command);
      } else {
        const previous = document.activeElement;
        const scratch = document.createElement("textarea");
        scratch.value = command;
        scratch.setAttribute("readonly", "");
        scratch.style.position = "fixed";
        scratch.style.opacity = "0";
        document.body.appendChild(scratch);
        scratch.select();
        document.execCommand("copy");
        document.body.removeChild(scratch);
        previous?.focus?.();
      }
      setCopied(true);
      setTimeout(() => setCopied(false), 2000);
    } catch {}
  };
  return <div className="hf-install-command not-prose my-4 flex items-stretch overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-900">
      <code className="flex-1 overflow-x-auto whitespace-nowrap border-r border-zinc-200 px-4 py-3 font-mono text-sm text-zinc-800 dark:border-zinc-800 dark:text-zinc-100">
        {command}
      </code>
      <button type="button" onClick={copy} data-copied={copied ? "true" : "false"} aria-label={`Copy ${command} to the clipboard`} className="hf-install-copy">
        <svg className="hf-install-copy-clipboard" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 18 18" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
          <path d="M14.25 5.25H7.25C6.14543 5.25 5.25 6.14543 5.25 7.25V14.25C5.25 15.3546 6.14543 16.25 7.25 16.25H14.25C15.3546 16.25 16.25 15.3546 16.25 14.25V7.25C16.25 6.14543 15.3546 5.25 14.25 5.25Z" />
          <path d="M2.80103 11.998L1.77203 5.07397C1.61003 3.98097 2.36403 2.96397 3.45603 2.80197L10.38 1.77297C11.313 1.63397 12.19 2.16297 12.528 3.00097" />
        </svg>
        <svg className="hf-install-copy-check" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 18 18" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
          <path d="M2.75 9.5L6.5 13.25L15.25 4.5" />
        </svg>
      </button>
      <span className="hf-install-copy-status" role="status" aria-live="polite">
        {copied ? "Copied" : ""}
      </span>
    </div>;
};

<iframe className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800" title="logo-brand-close preview" loading="lazy" srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@0.7/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/components/logo-brand-close.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/logo-brand-close.png");document.body.appendChild(p)});<\/script></body></html>`} />

## Install

<InstallCommand command="npx hyperframes add logo-brand-close" />

That writes one file: `compositions/components/logo-brand-close.html`.

## Paste it into your composition

Open `compositions/components/logo-brand-close.html` and copy what is inside into your own composition.

A component has no size or duration of its own. It takes both from the composition
you paste it into.

## Variables

Every one of these has a default, so the piece works untouched. Set the ones you
want to change on the element:

| Variable   | Default                     | Accepts                   | What it does                                                             |
| ---------- | --------------------------- | ------------------------- | ------------------------------------------------------------------------ |
| `wordmark` | `HYPERFRAMES`               | string                    | Brand name whose letters cascade into the centered lockup.               |
| `tagline`  | `Write HTML. Render video.` | string                    | Optional tagline that settles beneath the wordmark. Empty hides it.      |
| `url`      | `hyperframes.heygen.com`    | string                    | Optional mono URL line beneath the tagline. Empty hides it.              |
| `accent`   | `green`                     | `green`, `blue`, `violet` | Contract color used by the brand period at the end of the wordmark.      |
| `exit`     | `none`                      | `none`, `fade`, `up`      | Optional departure. Films end on the still hold, so the default is none. |

Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:

```html wrap theme={null}
<div
  data-composition-id="logo-brand-close"
  data-composition-src="compositions/components/logo-brand-close.html"
  data-variable-values='{"wordmark":"HYPERFRAMES","tagline":"Write HTML. Render video.","url":"hyperframes.heygen.com","accent":"green","exit":"none"}'
></div>
```

## Source

<Accordion title={`logo-brand-close.html`}>
  ```html theme={null}
  <!doctype html>
  <!--
    logo-brand-close: HyperFrames video primitive (brand close)

    The identity close that ends films. The wordmark lands at display scale,
    a chars-aware fit sizing it to roughly three quarters of the frame width.
    Letters cascade left to right (per-letter fade plus rise with a long
    expo tail) while the whole wordmark settles from a slightly larger scale,
    the accent brand period arrives last with a decisive pop, a readable
    tagline settles beneath, a wide-tracked mono URL breathes in below, then
    the finished lockup holds dead still to the end. Distinct from cta-close:
    identity, not action. No button, no cursor.

    Variables:
      - wordmark (string): the brand name that cascades into place.
      - tagline (string): optional line beneath the wordmark; empty hides it.
      - url (string): optional mono URL line; empty hides it.
      - accent (green | blue | violet): color of the brand period.
      - exit (none | fade | up, default none): films end on the hold.

    Envelope, fixed IN with elastic HOLD only (OUT exists only when exit is
    not none):
      IN_BASE  = 2.6s, letter cascade + scale settle, period pop, tagline
                 settle, URL tracking settle
      HOLD     = max(0, D - IN - OUT), completely still
      OUT_BASE = 0.5s only when exit is fade or up, otherwise 0
      If D is shorter than IN_BASE + OUT_BASE, both compress together.
      The timeline is never time-scaled.

    Mount contract: the runtime clones only this template. #root fills the host
    box, establishes the container query basis, has no data-width or data-height,
    and registers one paused timeline under the literal logo-brand-close key.
  -->
  <html
    lang="en"
    data-composition-id="logo-brand-close"
    data-composition-duration="4"
    data-composition-variables='[
      { "id": "wordmark", "type": "string", "role": "content", "label": "Wordmark", "description": "Brand name whose letters cascade into the centered lockup.", "default": "HYPERFRAMES" },
      { "id": "tagline", "type": "string", "role": "content", "label": "Tagline", "description": "Optional tagline that settles beneath the wordmark. Empty hides it.", "default": "Write HTML. Render video." },
      { "id": "url", "type": "string", "role": "content", "label": "URL", "description": "Optional mono URL line beneath the tagline. Empty hides it.", "default": "hyperframes.heygen.com" },
      { "id": "accent", "type": "enum", "role": "style", "label": "Accent", "description": "Contract color used by the brand period at the end of the wordmark.", "default": "green", "options": [{ "value": "green", "label": "Green" }, { "value": "blue", "label": "Blue" }, { "value": "violet", "label": "Violet" }] },
      { "id": "exit", "type": "enum", "role": "style", "label": "Exit", "description": "Optional departure. Films end on the still hold, so the default is none.", "default": "none", "options": [{ "value": "none", "label": "None" }, { "value": "fade", "label": "Fade" }, { "value": "up", "label": "Up" }] }
    ]'
  >
    <head>
      <meta charset="UTF-8" />
      <title>Logo Brand Close</title>
    </head>
    <body>
      <template>
        <div id="root" data-composition-id="logo-brand-close" data-duration="4" data-fps="30">
          <style>
            *,
            *::before,
            *::after {
              box-sizing: border-box;
            }

            #root {
              position: absolute;
              inset: 0;
              overflow: hidden;
              container-type: size;
              isolation: isolate;
              color: var(--fg, #f8fafc);
              font-family: var(--font-body, Inter, system-ui, sans-serif);
              pointer-events: none;
            }

            .lbc-clip {
              position: absolute;
              inset: 0;
              display: grid;
              place-items: center;
              overflow: hidden;
              background: var(--bg, #0b0c0e);
            }

            .lbc-lockup {
              display: flex;
              flex-direction: column;
              align-items: center;
              width: 100cqw;
              text-align: center;
              will-change: transform, opacity;
            }

            /* Display scale: the JS chars-aware fit targets ~76cqw of set
               width; 40cqh caps it in short, wide mounts. */
            .lbc-wordmark {
              display: flex;
              align-items: baseline;
              justify-content: center;
              margin: 0;
              color: var(--fg, #f8fafc);
              font-family: var(--font-display, Inter, system-ui, sans-serif);
              font-size: var(--lbc-wordmark-size, min(10.5cqw, 40cqh));
              font-weight: 600;
              line-height: 1.04;
              letter-spacing: -0.035em;
              white-space: nowrap;
              will-change: transform;
            }

            .lbc-letter {
              display: inline-block;
              flex: 0 0 auto;
              will-change: transform, opacity;
            }

            .lbc-space {
              width: 0.34em;
            }

            .lbc-period {
              color: var(--lbc-accent);
            }

            .lbc-tagline {
              max-width: 88cqw;
              margin: var(--space-2, 3cqmin) 0 0;
              color: var(--fg, #f8fafc);
              font-size: min(3.4cqw, 5.4cqmin);
              font-weight: 500;
              line-height: 1.3;
              letter-spacing: 0.01em;
              will-change: transform, opacity;
            }

            .lbc-url {
              margin: var(--space-3, 4.6cqmin) 0 0;
              color: var(--muted, #94a3b8);
              font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
              font-size: min(2.4cqw, 3.2cqmin);
              font-weight: 500;
              line-height: 1;
              letter-spacing: 0.28em;
              will-change: opacity;
            }
          </style>

          <div
            id="logo-brand-close-clip"
            class="lbc-clip clip"
            data-start="0"
            data-duration="4"
            data-track-index="0"
          >
            <div class="lbc-lockup">
              <h2 class="lbc-wordmark"></h2>
              <p class="lbc-tagline"></p>
              <p class="lbc-url"></p>
            </div>
          </div>

          <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
          <script>
            (function () {
              "use strict";

              var root = document.getElementById("root");
              var lockup = root.querySelector(".lbc-lockup");
              var wordmarkElement = root.querySelector(".lbc-wordmark");
              var taglineElement = root.querySelector(".lbc-tagline");
              var urlElement = root.querySelector(".lbc-url");
              var vars =
                window.__hyperframes && window.__hyperframes.getVariables
                  ? window.__hyperframes.getVariables()
                  : {};

              var wordmark =
                vars.wordmark == null
                  ? "HYPERFRAMES"
                  : String(vars.wordmark).trim().replace(/\s+/g, " ");
              if (wordmark.length === 0) wordmark = "HYPERFRAMES";
              var tagline =
                vars.tagline == null
                  ? "Write HTML. Render video."
                  : String(vars.tagline).trim().replace(/\s+/g, " ");
              var url = vars.url == null ? "hyperframes.heygen.com" : String(vars.url).trim();
              var accentColors = {
                green: "var(--brand, #71f5a7)",
                blue: "var(--accent, #61a8ff)",
                violet: "var(--accent-2, #c5a3ff)",
              };
              var accent = Object.prototype.hasOwnProperty.call(accentColors, vars.accent)
                ? vars.accent
                : "green";
              var exit = vars.exit === "fade" || vars.exit === "up" ? vars.exit : "none";

              root.style.setProperty("--lbc-accent", accentColors[accent]);
              wordmarkElement.setAttribute("aria-label", wordmark);
              wordmarkElement.setAttribute("role", "img");

              // The brand period: an accent dot ends the wordmark. If the
              // wordmark already ends with "." that period takes the accent
              // instead of appending a second one.
              var characters = Array.from(wordmark);
              if (characters[characters.length - 1] !== ".") characters.push(".");

              var letters = characters.map(function (character, index) {
                var letter = document.createElement("span");
                letter.id = "logo-brand-close-letter-" + index;
                letter.className = "lbc-letter";
                if (/\s/.test(character)) {
                  letter.classList.add("lbc-space");
                  letter.textContent = " ";
                } else {
                  letter.textContent = character;
                }
                if (index === characters.length - 1) letter.classList.add("lbc-period");
                letter.setAttribute("aria-hidden", "true");
                wordmarkElement.appendChild(letter);
                return letter;
              });
              var periodLetter = letters[letters.length - 1];
              var cascadeLetters = letters.slice(0, -1);

              // Deterministic chars-aware fit: probe the set width at a fixed
              // 100px font (letter-spacing rides in em, so the em ratio is a
              // pure font metric), then size the wordmark so it lands at
              // ~76cqw. The 40cqh term caps it in short, wide mounts. If the
              // probe cannot measure (detached render), fall back to a
              // per-glyph advance estimate.
              wordmarkElement.style.fontSize = "100px";
              var probedWidth = wordmarkElement.getBoundingClientRect().width;
              wordmarkElement.style.fontSize = "";
              var setWidthEm;
              if (probedWidth > 0) {
                setWidthEm = probedWidth / 100;
              } else {
                setWidthEm = characters.reduce(function (total, character) {
                  if (/\s/.test(character)) return total + 0.34;
                  if (/[.,:;!'’|]/.test(character)) return total + 0.3;
                  if (/[Iijlftr]/.test(character)) return total + 0.42;
                  if (/[MWmw@]/.test(character)) return total + 0.92;
                  return total + 0.64;
                }, 0);
                setWidthEm -= characters.length * 0.035;
              }
              setWidthEm = Math.max(0.3, setWidthEm);
              var wordmarkSize = 76 / setWidthEm;
              root.style.setProperty(
                "--lbc-wordmark-size",
                "min(" + wordmarkSize.toFixed(3) + "cqw, 40cqh)",
              );

              if (tagline.length === 0) taglineElement.remove();
              else taglineElement.textContent = tagline;
              if (url.length === 0) urlElement.remove();
              else urlElement.textContent = url;

              var IN_BASE = 2.6;
              var OUT_BASE = exit === "none" ? 0 : 0.5;
              var CASCADE_RISE_BASE = 1.15;
              var CASCADE_STAGGER_BASE = 0.7;
              var SETTLE_BASE = 2.4;
              var PERIOD_AT_BASE = 0.95;
              var PERIOD_DURATION_BASE = 0.9;
              var TAGLINE_AT_BASE = 1.35;
              var TAGLINE_DURATION_BASE = 0.9;
              var URL_AT_BASE = 1.7;
              var URL_DURATION_BASE = 0.85;
              var duration = Math.max(0.001, parseFloat(root.dataset.duration || "4"));
              var totalBase = IN_BASE + OUT_BASE;
              var scale = duration < totalBase ? duration / totalBase : 1;
              var IN = IN_BASE * scale;
              var OUT = OUT_BASE * scale;
              var STAGGER = cascadeLetters.length > 1 ? CASCADE_STAGGER_BASE * scale : 0;
              var HOLD = Math.max(0, duration - (IN + OUT));
              var OUT_START = IN + HOLD;

              var tl = gsap.timeline({ paused: true });

              // IN: per-letter fade plus rise with a long expo tail, while the
              // whole wordmark settles down from a slightly larger scale.
              if (cascadeLetters.length > 0) {
                tl.fromTo(
                  cascadeLetters,
                  { opacity: 0, y: "0.62em" },
                  {
                    opacity: 1,
                    y: "0em",
                    duration: CASCADE_RISE_BASE * scale,
                    stagger: { amount: STAGGER, from: "start" },
                    ease: "expo.out",
                  },
                  0,
                );
              }

              tl.fromTo(
                wordmarkElement,
                { scale: 1.04, transformOrigin: "50% 100%" },
                { scale: 1, duration: SETTLE_BASE * scale, ease: "expo.out" },
                0,
              );

              // The brand period lands last: a decisive accent pop.
              tl.fromTo(
                periodLetter,
                { opacity: 0, scale: 0.2, y: "0.08em", transformOrigin: "50% 65%" },
                {
                  opacity: 1,
                  scale: 1,
                  y: "0em",
                  duration: PERIOD_DURATION_BASE * scale,
                  ease: "back.out(1.8)",
                },
                PERIOD_AT_BASE * scale,
              );

              if (taglineElement.isConnected) {
                tl.fromTo(
                  taglineElement,
                  { opacity: 0, y: "0.9em" },
                  {
                    opacity: 1,
                    y: "0em",
                    duration: TAGLINE_DURATION_BASE * scale,
                    ease: "power3.out",
                  },
                  TAGLINE_AT_BASE * scale,
                );
              }

              if (urlElement.isConnected) {
                tl.fromTo(
                  urlElement,
                  // scaleX, not letterSpacing: tracking is a layout property, so
                  // the browser snaps it to integer device pixels and the
                  // ease-out tail stutters under seek-by-frame capture. The
                  // widening reads the same and stays on the compositor.
                  { opacity: 0, scaleX: 1.06 },
                  {
                    opacity: 1,
                    scaleX: 1,
                    duration: URL_DURATION_BASE * scale,
                    ease: "power2.out",
                  },
                  URL_AT_BASE * scale,
                );
              }

              // HOLD: dead still. No drift, no breath; the confidence is the
              // stillness, and by default the film ends here.

              if (exit === "fade") {
                tl.to(lockup, { opacity: 0, duration: OUT, ease: "power2.in" }, OUT_START);
              } else if (exit === "up") {
                tl.to(
                  lockup,
                  { opacity: 0, y: "-5cqh", duration: OUT, ease: "power2.in" },
                  OUT_START,
                );
              }

              tl.seek(0);
              window.__timelines = window.__timelines || {};
              window.__timelines["logo-brand-close"] = tl;
            })();
          </script>
        </div>
      </template>
    </body>
  </html>
  ```
</Accordion>

Tagged `motion-primitive` `typography` `brand` `logo` `end-card` `close`.

## Related topics

* [Browse the complete Catalog](/catalog)
* [Add assets and Catalog items in Studio](/studio/assets-and-blocks)
* [Build a richer composition](/go-further)


## Related topics

- [Design systems and brand](/prompting/design-systems.md)
- [Logo Sting](/catalog/components/logo-sting.md)
- [Logo Outro](/catalog/blocks/logo-outro.md)
