Files
hyperframes/docs/catalog/components/logo-sting.mdx
T
Ular Kimsanov a06fdfe26e docs(catalog): put each item page's title, description and Docs text in the server HTML (#6711)
* docs(catalog): put each item page's title, description and Docs text in the server HTML

Mintlify renders snippet components in the browser only, so everything inside
CatalogDetail (title, standfirst, the Docs tab) was missing from the HTML search
engines read: 448 catalog pages served Googlebot no body text. The generator now
writes the H1 and standfirst as page markup above the component and the Docs tab
as page markup after it, shown with that tab (docs/custom.css). The component no
longer draws its own title. Pages patched structurally only; registry drift on 14
pages is left for a regeneration of its own.

* docs(catalog): keep the title's top spacing the component gave it

* fix(docs): catalog titles and descriptions keep markdown markers literal

MDX reads text inside the static <h1> and <p> as inline markdown, so @_blue_sweater_
rendered as italic blue_sweater. mdxText now writes backslash, backtick, * _ [ ] ~ as
character references too, with a unit test; the four affected pages are re-escaped.
2026-10-30 15:48:25 +00:00

265 lines
9.2 KiB
Plaintext

---
title: "Logo Sting"
description: "A wordmark slams into its final scale, fires one accent ring and one white impact frame, then holds completely still."
mode: "frame"
---
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
import { InstallCommand } from "/snippets/install-command.jsx";
<div className="hf-ve-static-head not-prose">
<h1>Logo Sting</h1>
<p>A wordmark slams into its final scale, fires one accent ring and one white impact frame, then holds completely still.</p>
</div>
<CatalogDetail
previewSrc="/public/catalog/components/logo-sting.json"
compositionId="logo-sting"
compositionSrc="compositions/components/logo-sting.html"
title="Logo Sting"
variables={[{"id":"wordmark","type":"string","role":"content","label":"Wordmark","description":"Brand name displayed in the final lockup.","default":"HYPERFRAMES"},{"id":"accent","type":"enum","role":"style","label":"Accent","description":"Color of the single impact ring.","default":"green","options":[{"value":"green","label":"Green"},{"value":"blue","label":"Blue"},{"value":"violet","label":"Violet"}]}]}
meta={{"category":"Motion Scenes","badge":"Stable","codeLines":180}}
attribution={{"path":"registry/components/logo-sting","tags":["motion-primitive","brand","logo","sting","impact","reveal"]}}
hasCode
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/components/logo-sting/logo-sting.html"
>
<CatalogSlot slot="code">
```html logo-sting.html
<!doctype html>
<!--
logo-sting: HyperFrames video primitive (brand / impact / reveal)
Concept: a wordmark lands from scale 1.15 with the slam ease. Its impact
triggers one accent ring and exactly one frame of white, then the finished
lockup holds completely still.
Variables:
- wordmark (string, default "HYPERFRAMES"): the brand name.
- accent (green | blue | violet, default green): the ring color.
Envelope (fixed IN, elastic HOLD, no OUT, never timeScale):
IN_BASE = 0.95s. The wordmark lands at 0.55s, then the ring resolves.
HOLD = max(0, D - IN). This phase is deliberately dead still.
OUT = 0s. The final brand frame remains established through the end.
If D is shorter than IN_BASE, only IN compresses and HOLD becomes zero.
Mount contract: this template is cloned into a sized host. #root fills that
host, establishes the container query basis, and registers one paused GSAP
timeline under the hardcoded logo-sting key.
-->
<html
lang="en"
data-composition-id="logo-sting"
data-composition-duration="2.2"
data-composition-variables='[
{ "id": "wordmark", "type": "string", "role": "content", "label": "Wordmark", "description": "Brand name displayed in the final lockup.", "default": "HYPERFRAMES" },
{ "id": "accent", "type": "enum", "role": "style", "label": "Accent", "description": "Color of the single impact ring.", "default": "green", "options": [{ "value": "green", "label": "Green" }, { "value": "blue", "label": "Blue" }, { "value": "violet", "label": "Violet" }] }
]'
>
<head>
<meta charset="UTF-8" />
<title>Logo Sting</title>
</head>
<body>
<template>
<div id="root" data-composition-id="logo-sting" data-duration="2.2" data-fps="30">
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
#root {
position: absolute;
inset: 0;
overflow: hidden;
container-type: size;
background: var(--bg, #0b0c0e);
color: var(--fg, #f8fafc);
font-family: var(--font-display, Inter, system-ui, sans-serif);
pointer-events: none;
}
.ls-clip {
position: absolute;
inset: 0;
display: grid;
place-items: center;
overflow: hidden;
}
.ls-ring {
position: absolute;
z-index: 1;
width: min(42cqw, 72cqh);
aspect-ratio: 1;
border: min(0.34cqw, 0.62cqh) solid var(--ls-accent);
border-radius: 50%;
opacity: 0;
will-change: transform, opacity;
}
.ls-wordmark {
position: relative;
z-index: 2;
max-width: 90cqw;
color: var(--fg, #f8fafc);
font-size: min(10.5cqw, 18cqh);
font-weight: 850;
line-height: 0.9;
letter-spacing: -0.055em;
text-align: center;
white-space: nowrap;
transform-origin: 50% 50%;
will-change: transform;
}
.ls-flash {
position: absolute;
inset: 0;
z-index: 3;
background: #ffffff;
opacity: 0;
}
</style>
<div
id="logo-sting-clip"
class="ls-clip clip"
data-start="0"
data-duration="2.2"
data-track-index="0"
>
<div class="ls-ring" aria-hidden="true"></div>
<div class="ls-wordmark"></div>
<div class="ls-flash" aria-hidden="true"></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 wordmark = root.querySelector(".ls-wordmark");
var ring = root.querySelector(".ls-ring");
var flash = root.querySelector(".ls-flash");
var vars =
window.__hyperframes && window.__hyperframes.getVariables
? window.__hyperframes.getVariables()
: {};
var accentColors = {
green: "var(--brand, #5df28b)",
blue: "var(--accent, #4da3ff)",
violet: "var(--accent-2, #a978ff)",
};
var accent = Object.prototype.hasOwnProperty.call(accentColors, vars.accent)
? vars.accent
: "green";
var wordmarkText = vars.wordmark == null ? "HYPERFRAMES" : String(vars.wordmark);
wordmark.textContent = wordmarkText;
root.style.setProperty("--ls-accent", accentColors[accent]);
var IN_BASE = 0.95;
var IMPACT_BASE = 0.55;
var parsedDuration = parseFloat(root.dataset.duration);
var duration = Number.isFinite(parsedDuration) ? Math.max(0.001, parsedDuration) : 2.2;
var IN = Math.min(IN_BASE, duration);
var retime = IN / IN_BASE;
var IMPACT = IMPACT_BASE * retime;
var RING_DURATION = (IN_BASE - IMPACT_BASE) * retime;
var FLASH_FRAME = Math.min(1 / 30, RING_DURATION);
var HOLD = Math.max(0, duration - IN);
gsap.set(ring, { scale: 0.34, opacity: 0 });
gsap.set(flash, { opacity: 0 });
var tl = gsap.timeline({ paused: true });
tl.fromTo(
wordmark,
{ scale: 1.15 },
{ scale: 1, duration: IMPACT, ease: "expo.out" },
0,
);
tl.set(ring, { opacity: 0.92 }, IMPACT);
tl.to(
ring,
{ scale: 2.4, opacity: 0, duration: RING_DURATION, ease: "power3.out" },
IMPACT,
);
tl.set(flash, { opacity: 1 }, IMPACT);
tl.set(flash, { opacity: 0 }, IMPACT + FLASH_FRAME);
tl.addLabel("hold", IN);
tl.addLabel("end", IN + HOLD);
tl.seek(0);
window.__timelines = window.__timelines || {};
window.__timelines["logo-sting"] = tl;
})();
</script>
</div>
</template>
</body>
</html>
```
</CatalogSlot>
<CatalogSlot slot="install">
<InstallCommand command="npx hyperframes add logo-sting" item="logo-sting" />
That writes one file: `compositions/components/logo-sting.html`.
</CatalogSlot>
</CatalogDetail>
<div data-static-slot="docs" className="prose prose-gray dark:prose-invert">
## Paste it into your composition
Open `compositions/components/logo-sting.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 displayed in the final lockup. |
| `accent` | `green` | `green`, `blue`, `violet` | Color of the single impact ring. |
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
<div
data-composition-id="logo-sting"
data-composition-src="compositions/components/logo-sting.html"
data-variable-values='{"wordmark":"HYPERFRAMES","accent":"green"}'
></div>
```
{/* hf:generated-footer */}
Tagged `motion-primitive` `brand` `logo` `sting` `impact` `reveal`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in the browser editor](/studio/assets-and-blocks)
- [Put blocks together into one video](/concepts/compositions)
</div>