/genmotion:three-typefrom genmotion
Renders kinetic typography in Three.js scenes using canvas-texture planes with per-word/character control, blur/tint shaders, and rolling counters. Includes recipes for typewriter, karaoke, count-ups, and responsive sizing per aspect ratio.
Ships in genmotion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
There is no DOM on the Three.js engine: every word is pixels in a canvas texture on a plane. Done naively that gives soft type, a fallback font in the export, colour sweeps that look pale, and lines that reflow when they animate. The 3D templates (Samsung Pay, LightPay, Moonlight, p(doom)) solved each of those; this skill packages their answers as one module, components/type.ts, and maps every kinetic-type recipe in motion-language onto it.
What to animate and for how long (blurUp 12f with a 3f stagger, per-character 1.2–1.6f, reading-time holds) is motion-language's references/text-motion.md. This skill is how to build it.
Not for: what the words say or how long they hold (direction, motion-language), the camera moving past them (three-camera), colour and contrast of the palette (three-look).
Copy references/type-kit.md into components/type.ts (it imports PX/RES from components/stage.ts, in three-camera's references/rig.md). What it gives you:
| Call | What |
|---|---|
label(text, style) | One plane, drawn once at 2×, unlit, named after its words |
line(text, style, align?) | One plane per word, laid out with measured widths; each keeps restX; align "left" / "center" / "right" (a left column is "left") |
letters(word, style) | One plane per character; track(em, anchor?) re-spaces them with no redraw, holding the anchor edge ("left" for a wordmark right of its symbol) still |
setLabel(m, { opacity, blur, color, maskY, maskX, maskSoft }) | The per-frame look: blur in px, tint (it replaces style.color, which is only the starting tint: the canvas is drawn white), clip below a line, clip right of a line (a wipe that writes the word in) |
maskDepth(text, style) | Px below a centred label's middle for a rise mask: the text's lowest ink in the loaded face (descenders included) plus a small pad |
counter("#,###", style, figures?, anchor?) | Digits rolling on a strip texture; leading zeros hidden ("$42", not "$0,042"); decimals with "##.#" (set(0.4) reads "0.4"); the visible number is centred by default (anchor "right"/"left" pins that edge); setColor for an ink change. Load the face with tabular figures on (features: '"tnum" 1') or pass "proportional" |
withFonts(ctx, files, build) | Re-exported from @genmotion/three-engine, so every project runs the same loader: builds the scene only once the font files have loaded, inside the frame barrier; several families in one call; features turns on OpenType features (tabular figures), variation pins a variable axis |
onTop(obj, order?) | Keeps type in front of 3D objects as one layer: depth test off, order on every mesh and Group under it. 100 = above the world, under covers; 920 = captions on the overlay; 960+ = above a flood |
Rules it encodes, and why:
size instead."Inter" by name silently becomes a default sans in the export. Put the woff2 (or woff) in assets/ and wrap each scene's builder in withFonts; TTF and OTF files fail the project's bundler and check, so convert or fetch the woff2. Any OFL face: npm pack @fontsource-variable/<family> (or @fontsource/<family>) and take the latin woff2 from files/. Inter (OFL): save-asset https://raw.githubusercontent.com/rsms/inter/master/docs/font-files/InterVariable.woff2 (font CDNs are often blocked; this and the rsms/inter GitHub release are not); more sources in references/type-kit.md §3.font-optical-sizing and no font-variation-settings, so an opsz face (Jaro, Nunito Sans, Roboto Flex, Inter's optical cuts) set at 58px still draws the small-text design and looks nothing like the specimen page. Pin the axis on the file: { family, url, variation: "'opsz' 58" }, the size the type is drawn at. Same for any other axis the specimen moved (wdth, GRAD).doc.fonts outlives the scene; the engine's withFonts tags each face with the URL it loaded from and drops a stale one, so changing the import is enough. Renaming the family to force a reload is a workaround, not a fix — and a hand-rolled loader that matches on the name alone silently keeps drawing the old file in the preview while every fresh render shows the new one, which reads as "the font never changed".style.color as the starting tint, so a later tint replaces it, never multiplies with it.renderer.toneMapping, so #ededef stays #ededef under any look.onTop() (depth test off, drawn last); check a frame where an object passes in front.letters() places each glyph where it sits inside the kerned word, so "WAVY", "AV" and "To" set per character match the same word set whole.renderOrder before the mesh's own, and every Group resets it: the Group that line(), letters() and counter() return sits at 0, so its words sort to the bottom of wherever they are nested, whatever order the meshes carry. That is why onTop(obj, order) sets the order on the groups too: always pass the group through onTop with the layer you want. three-camera's overlay() group is 900 and a cover in it 950, so onTop(x) (100) stays under floods and flashes, onTop(caption, 920) puts captions on the overlay above world type, and onTop(line, 960) puts a payoff line above a flood. Covers and panels must be transparent: true: opaque objects all draw before transparent ones. Details in references/type-kit.md §4.#ship-the-whole-film.Keep one TYPE table in components/, named by role, and use nothing else. This is the pack's one size table: it is the house design standards every project's AGENTS.md carries, and other skills cite it rather than restating sizes.
export const TYPE = {
hero: { size: 110, weight: 500 }, // headlines, 72–130 (one per scene)
sub: { size: 42, weight: 400, color: "#8a8a93" }, // supporting line, 34–48
label: { size: 30, weight: 500 }, // labels, annotations, 16:9 captions, 28–34
eyebrow: { size: 28, weight: 500, tracking: 0.16 }, // uppercase eyebrows only, 28 (the floor)
display: { size: 130, weight: 500, tracking: -0.03 }, // the film's title or its one number
} as const;
| Role (px at 1080 on the short side) | Size | Tracking | Weight |
|---|---|---|---|
| Hero headline | 72–130 | −0.02em (60–119 px), −0.03em (120–130 px) | 400–500, never above 500 |
| Supporting line | 34–48 | 0 | 400 |
| Labels, annotations, captions (16:9) | 28–34 | 0 | 400–500 |
| Eyebrow (uppercase, the only all-caps text) | 28 | +0.12 to +0.2em | 500 |
| The one image-word: a wordmark lockup, a hero number, a bleed punch word | Above 130, sized by the lockup or the frame | sentence case −0.03 to −0.045em; uppercase wordmark +0.08 to +0.16em | the brand's, else 500 |
ugc-craft's caption spec.video-editing's trailer format sets those in caps or small caps at +0.1 to +0.2em, fully legible on their hit frame). Uppercase at display size needs positive tracking: caps set tight read cramped.three-assets' references/drawn-ui.md has textBars().96 / 0.727 ≈ 132 px; on a centred label they sit 0.03 × size above the plane's centre (shift down by that to centre caps optically on a symbol).maskY = y − 0.36 × size), a wipe (maskX behind a moving edge or line), or blur 6 → 0 with opacity stepped on in ≤ 2f; references/reveals.md §4.three-look has the colour pairs that pass). One size pair per scene, three sizes at most.size is the on-screen size there. Type at another depth scales by D0 / (D0 − z) (three-camera); work it out, then confirm on a frame.measure() and stack lines at 1.1–1.2 × size.fitBlock() only as a last resort; re-breaking lines per aspect is better than shrinking.All in references/reveals.md, compiled and captured:
Recipe (numbers from motion-language) | Kit move |
|---|---|
| blurUp by word: 12f outCubic, 3f stagger, blur 10 → 0 | line(), setLabel({ opacity, blur }), y offset |
| riseMask: 13f outQuart, stagger 4f | setLabel({ maskY }) at y − maskDepth(text, style) * PX: under the descenders |
| Per-character title with colour sweep | letters(), tint lands 1.6× slower than the move |
Wordmark: tracking +0.32 → +0.01em over 15f outQuad (uppercase: → +0.08 to +0.16em), letters rising through a mask under the word's lowest ink (maskDepth: under the caps only when the word has no descender); or written in by a wipe | letters().track(em, "left") per frame, setLabel({ maskY }) or setLabel({ maskX, maskSoft }) |
| L→R sweep, two-pass ink | tint per word, 2f apart; grey → ink 5f later |
| Typewriter: 2–2.4 f/char, caret solid while typing | letters() visibility by index + a caret plane |
| Word-slot flip: −96° out, +92° in, slot morphs 14f | pivot on the baseline, rotation.x, measured slot widths |
| Scatter pops, beat cards | stepped opacity, no tween on the beat |
| Highlight block, pen underline | a plane scaled from its left edge; a stroke (three-look) |
| Count-up 40–48f / 120–210f, land punch 1.06 | counter().set(), group scale |
| Captions, karaoke | phrase planes on the camera overlay; kick() pops |
| Glow-resolve (social cards on dark): blurUp 12f + an additive halo copy 1 → 0.45 at 16 px | a second label per word with 48 px blur room, AdditiveBlending, a hair behind |
| Smear-in (one punch word): scale x 1.5 → 1 from the reading side, horizontal blur 14 → 0, 9f | label(…, "left"), the uBlur uniform set on x only |
| Rebus slot: a glyph at cap height inside the line, a stack rolling 3–5f per item, slowing on the last | labels either side of a square glyph plane (or a three-look coin or icon), laid out around the slot |
Two specs, by job:
ugc-craft's caption spec is the one spec (word groups, size, heavy weight with a stroke or scrim, active-word highlight); the house guide sanctions it as the exception to the weight cap. Build it with this kit (one label per group, drawn in the shipped font inside withFonts, never a family name alone).transcribe), no tween between phrases; legible as or before the word is spoken, held ≥15f after it. 16:9: 34–48 px, weight 400–500, bottom of the block ≥ 8% above the frame edge. 9:16: block centred 58–63% down (y ≈ 1110–1210), 48–72 px.three-camera overlay()), so a punch-in or shake never moves them, wrapped in onTop(group, 920) (above world type; 960 if a flood passes under them). On footage or anything busy, a scrim plane at 0.5–0.6 opacity behind them.The shape every type-led scene takes: fonts first, then the lines, then entrances, holds and exits from the frame. Compiled and captured.
import * as THREE from "three";
import type { ThreeSceneContext, ThreeSceneUpdate } from "@genmotion/three-engine";
import interUrl from "../assets/InterVariable.woff2";
import { fitCamera, PX } from "../components/stage";
import { colorPipeline, LOOK } from "../components/look";
import { line, label, setLabel, withFonts } from "../components/type";
import { TYPE } from "../components/brand";
import { inCubic, outCubic, prog } from "../components/ease";
export default function buildScene(ctx: ThreeSceneContext): ThreeSceneUpdate {
return withFonts(ctx, [{ family: "Inter", url: interUrl }], () => {
const { scene, camera, renderer, height, durationInFrames: D } = ctx;
colorPipeline(renderer, "flat");
fitCamera(camera, height);
scene.background = new THREE.Color(LOOK.bg);
const head = line("Ship the whole film", TYPE.hero); // wrap in onTop(head.group) if 3D objects share the frame
head.group.position.y = 60 * PX;
const sub = label("in one take", TYPE.sub);
sub.position.y = -60 * PX;
scene.add(head.group, sub);
return ({ frame, time }) => {
const out = prog(frame, D - 14, 7, inCubic); // every line clear 7f before the cut
head.words.forEach((w, i) => {
const p = prog(frame, 4 + i * 3, 12, outCubic);
w.position.y = (1 - p) * -48 * PX + out * 20 * PX;
setLabel(w, { opacity: Math.min(1, p / 0.35) * (1 - out), blur: (1 - p) * 10 + out * 10 });
});
setLabel(sub, { opacity: prog(frame, 20, 10, outCubic) * (1 - out) });
head.group.position.y = 60 * PX + 3 * PX * Math.sin(time * Math.PI * 0.5); // float 3 px at 0.25 Hz, one phase
};
});
}
Family (direction) | Type build |
|---|---|
| Beat-cut kinetic type | One label per card, no tween, hard cut on the beat; accent cards a 2-frame strobe |
| Soft-light SaaS | blurUp by word, 96–120 px, 500; UI text drawn inside the UI canvases, ≥28 px where it is seen (zoom in rather than shrink) |
| 3D product hero | Headlines 110–130 px at −0.03em, 500; a single slammed word or number may go larger as the image-word; one punch word in the second colour; type over the 3D objects in onTop() |
| One-shot film | Words carried in from 170 px right, 3.6f apart, colour band sweeping each line |
| Whiteboard | Hand-written text revealed left to right by a soft x-wipe in its shader, 8–18f by width; left column at a 140 px margin |
| Music video | Karaoke lines, sung word flashing the accent |
| Milestone | counter with land punch; label above it in muted |
| Social title-card launch (K) | One full-frame card of 2–4 words: in a feed or social cut, cap height 15–25% of the frame height (≈ 160–270 px at 1080 tall; Inter's cap is 0.727 of the size, so a 220–370 px size; in 9:16 the width governs: one or two words a line, the longest line ≤ 85% of the frame width), one accent or bleed word; "full-frame" means the type fills the frame, not a small word on a black ground (cards at 7% of the height read as refined-small and lost a judged film its punch). Keep 72–110 px for captions and labels beside the product; glow-resolve by word, one accent word in a lighter tint of the accent, a smear-in for the punch word, a rebus slot when the noun has a glyph; captions beside tilted UI two-tone (key words ink 500, rest muted 400) |
MeshStandardMaterial for type. Lit type darkens on one side; a tone-mapped MeshBasicMaterial shifts the brand hex. Use the kit's shader (or MeshBasicMaterial with toneMapped: false)."proportional" slots.onTop: it sorts under whatever its group's order is (0), and a flood or panel covers it.| Need | What | Fallback when it is missing |
|---|---|---|
| Font files in the project | save-asset the brand's woff2, or Inter's from the rsms/inter GitHub URL above, into assets/ | Any OFL woff2 already on disk; else the kit falls back to the system sans: say so to the user |
| Caption timing | transcribe on the VO | Time phrases by ear from the script at the VO's words per minute |
| Checking legibility | capture-frames mid-reveal and on the held line | None |
| Text motion numbers | motion-language | — |
capture-frames on every held line: the face is the brand font (not a fallback sans), edges crisp, nothing under 28 px, no headline heavier than 500.letters()) at full resolution: no overlapping or gapped glyph pairs (look at a T, V, W or Y next to a lowercase letter). Mid-reveal frames of uppercase display type show no grey, half-opaque capitals. A counter mid-count shows no leading zeros, and a value with 1s in it (1,211) is evenly spaced: no wide gap either side of a 1.onTop with its layer's order).max(30, 9 × words + 15) frames once legible.validate passes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub haxzie/genmotion --plugin genmotion35 skills in this plugin
/ad-qaThe pre-ship QA pass for a short-form or social ad, run on captured frames and the exported file: the exact frames to capture, eleven tests with pass criteria and fixes (hook frame, brand timing, mute, safe zones with a drawn overlay, captions, text size and contrast, pacing, CTA and ending, audio and loudness, ad codes, claims), then direction's critique rubric as the ship bar and a short report for the user. Every UGC owner ends here. Load it before telling anyone an ad is finished./ai-presenterPutting a person on screen in an ad when there is no footage: the user's own clip first, or a generated portrait driven by a lipsync model. Covers when not to use a face at all, the lipsync input spec (portrait, audio, neutral mouth), framing and headroom for 9:16, one take length (four seconds), lip-sync tolerance in frames, matching voice to face, the uncanny tells and the edit patterns that hide them, the seek-safe build on each engine, and the line between a synthetic presenter and a fabricated customer. Load it alongside a UGC owner, never instead of one./announce-featureThe 15 to 45 second feature announcement or changelog video, in the manner of Linear, Notion and Slack: what changed, why it matters, show it, where to find it. Covers naming the feature in the first six words, frame-budgeted beat sheets for 15, 20, 30 and 45 seconds with VO word budgets, the cursor, before-and-after and focus-push patterns with house timings, the CTA that points at the toggle, sound per interaction, and recuts for an in-app loop, a changelog embed and a vertical social clip. Load it for one feature or a small set, not a whole-product launch.