Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
feat(registry): add mk-pill-callout — capsule callout chip
jbernard07795125834e8b3
diff --git a/docs/catalog/components/mk-pill-callout.mdx b/docs/catalog/components/mk-pill-callout.mdxnew file mode 100644index 0000000000..2d5881ce5e--- /dev/null+++ b/docs/catalog/components/mk-pill-callout.mdx@@ -0,0 +1,38 @@+---+title: "Capsule Callout Chip"+description: "Rounded capsule chip for handles, tags, and URLs with solid, paper, and frosted-glass variants; slide in/out helpers for the host timeline"+---++# Capsule Callout Chip++Rounded capsule chip for handles, tags, and URLs with solid, paper, and frosted-glass variants; slide in/out helpers for the host timeline++`callout` `social` `minimal` `overlay`++<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/mk-pill-callout.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/mk-pill-callout.png" autoPlay muted loop playsInline />++## Install++<CodeGroup>++```bash Terminal+npx hyperframes add mk-pill-callout+```++</CodeGroup>++## Details++| Property | Value |+| --- | --- |+| Type | Component |++## Files++| File | Target | Type |+| --- | --- | --- |+| `mk-pill-callout.html` | `compositions/components/mk-pill-callout.html` | hyperframes:snippet |++## Usage++Read the installed file and copy its CSS, markup pattern, and helper functions into your host composition — the parent timeline owns all timing. The file's header comment documents the wiring calls.diff --git a/registry/components/mk-pill-callout/mk-pill-callout.html b/registry/components/mk-pill-callout/mk-pill-callout.htmlnew file mode 100644index 0000000000..84f970e878--- /dev/null+++ b/registry/components/mk-pill-callout/mk-pill-callout.html@@ -0,0 +1,123 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>+ <style>+ *,+ *::before,+ *::after {+ margin: 0;+ padding: 0;+ box-sizing: border-box;+ }+ body {+ background: transparent;+ overflow: hidden;+ }+ /* ---- mk-pill-callout ----------------------------------------------+ Capsule chip in a minimal presentation style: @handles, tags, URLs, CTAs.+ Variants: --accent (iOS-blue fill), --paper (white card + shadow),+ --frost (frosted glass over footage/gradient).+ Tokens fall back to the mk family defaults; override in the host. */+ .mk-pill {+ --mk-font: "Inter", -apple-system, sans-serif;+ --mk-ink: #1d1d1f;+ --mk-paper: #ffffff;+ --mk-accent: #0071e3;+ --mk-radius-pill: 999px;+ --mk-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);++ position: absolute;+ display: inline-flex;+ align-items: center;+ gap: 16px;+ padding: 22px 44px;+ border-radius: var(--mk-radius-pill);+ font-family: var(--mk-font);+ font-weight: 600;+ font-size: 40px;+ letter-spacing: -0.01em;+ white-space: nowrap;+ pointer-events: none;+ }+ .mk-pill--accent {+ background: var(--mk-accent);+ color: #ffffff;+ }+ .mk-pill--paper {+ background: var(--mk-paper);+ color: var(--mk-ink);+ box-shadow: var(--mk-shadow);+ }+ .mk-pill--frost {+ background: rgba(255, 255, 255, 0.42);+ color: var(--mk-ink);+ backdrop-filter: blur(24px) saturate(1.4);+ -webkit-backdrop-filter: blur(24px) saturate(1.4);+ box-shadow: var(--mk-shadow);+ }+ .mk-pill-dot {+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background: currentColor;+ opacity: 0.9;+ }+ </style>+ </head>+ <body>+ <!-- Self-preview wrapper. WIRING: copy only the .mk-pill CSS above, the+ .mk-pill markup below, and the mkPillIn/mkPillOut helpers into your+ host composition — position instances via top/right/bottom/left and+ add class="clip" + data-start/data-duration/data-track-index when the+ host should window their visibility. -->+ <div+ id="mk-pill-root"+ data-composition-id="mk-pill-callout"+ data-start="0"+ data-duration="4"+ data-width="1920"+ data-height="1080"+ >+ <div class="mk-pill mk-pill--accent" id="mk-pill-demo" style="top: 120px; right: 140px">+ <span class="mk-pill-dot"></span><span>@hyperframes</span>+ </div>+ <div+ id="mk-pill-drv"+ class="clip"+ data-start="0"+ data-duration="4"+ data-track-index="0"+ style="position:absolute;width:1px;height:1px;opacity:0;pointer-events:none"+ ></div>+ </div>++ <script>+ (function () {+ window.__timelines = window.__timelines || {};++ // ---- copy these helpers into the host script (before your timeline+ // code), then call them on your paused host timeline:+ //+ // mkPillIn(tl, "#mk-my-pill", 0.8); // slide+fade entrance+ // mkPillOut(tl, "#mk-my-pill", 9.2); // fade exit+ //+ window.mkPillIn = function (tl, target, at) {+ gsap.set(target, { opacity: 0, y: 24, scale: 0.96 });+ tl.to(target, { opacity: 1, y: 0, scale: 1, duration: 0.6, ease: "power3.out" }, at);+ };+ window.mkPillOut = function (tl, target, at) {+ tl.to(target, { opacity: 0, y: -16, duration: 0.35, ease: "power2.in" }, at);+ };++ // Self-preview timeline (not part of the snippet you copy).+ var tl = gsap.timeline({ paused: true });+ window.mkPillIn(tl, "#mk-pill-demo", 0.4);+ window.mkPillOut(tl, "#mk-pill-demo", 3.4);+ tl.set("#mk-pill-root", { visibility: "hidden" }, 3.98);+ window.__timelines["mk-pill-callout"] = tl;+ })();+ </script>+ </body>+</html>diff --git a/registry/components/mk-pill-callout/registry-item.json b/registry/components/mk-pill-callout/registry-item.jsonnew file mode 100644index 0000000000..f841aa2845--- /dev/null+++ b/registry/components/mk-pill-callout/registry-item.json@@ -0,0 +1,20 @@+{+ "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",+ "name": "mk-pill-callout",+ "type": "hyperframes:component",+ "title": "Capsule Callout Chip",+ "description": "Rounded capsule chip for handles, tags, and URLs with solid, paper, and frosted-glass variants; slide in/out helpers for the host timeline",+ "tags": [+ "callout",+ "social",+ "minimal",+ "overlay"+ ],+ "files": [+ {+ "path": "mk-pill-callout.html",+ "target": "compositions/components/mk-pill-callout.html",+ "type": "hyperframes:snippet"+ }+ ]+}diff --git a/registry/registry.json b/registry/registry.jsonindex 5513973ee9..d8f58336c1 100644--- a/registry/registry.json+++ b/registry/registry.json@@ -570,6 +570,10 @@{"name": "parallax-unzoom","type": "hyperframes:component"+ },+ {+ "name": "mk-pill-callout",+ "type": "hyperframes:component"}]}