motion-graphics
БесплатноЗапускает вложенные скриптыНе проверенBuild frame-exact motion graphics — animated logos, kinetic typography, brand videos, animated titles and social clips — as a single HTML file driven by a…
от Hectr203★ 21 звезда на GitHubОб этом скилле
Motion graphics as code
Everything here is built the same way: one HTML file, one paused timeline, deterministic export. No video editor, no After Effects, no timeline GUI. The animation is code, so it is diffable, reviewable, re-renderable at any size, and — crucially — measurable.
That last word is the heart of this skill. Motion work invites eyeballing, and eyeballing lies. Nearly every real defect you will hit here is invisible to a glance and obvious to a measurement, and several things that look broken turn out to be the measuring script's fault. Build the habit early: when something looks wrong, get a number before you get an opinion.
The shape of the thing
project/
├── video.html # canvas, scenes, timeline — the whole animation
├── export.js # frame-by-frame capture → MP4, all aspect ratios
└── verify.js # whatever you need to assert about this piece
Copy assets/starter.html to begin. It is a complete, working animation with the engine already wired — type that enters, a recurring mark that highlights a word, and a scene that exits. Its palette and motif are placeholders; the structure is the point. Read it before writing anything; it is faster than assembling the pieces from the references.
scripts/timeline.js is the engine and scripts/physics.js the simulator — inline both into the HTML, since a single self-contained file is the deliverable. scripts/export.js and scripts/verify.js run in Node and work unchanged for any project that exposes window.__seek and window.__duration.
Why a paused timeline
CSS animations and libraries run on wall-clock time. That is fine for a website and useless for a video: to capture frame 847 you must be able to put the animation at frame 847, exactly, on demand.
So: every animation is created through the Web Animations API with fill: 'both', its absolute start time baked into the timing as delay, and immediately paused. Then
function seek(s){ A.forEach(a => { a.pause(); a.currentTime = s * 1000; }); }
positions the entire piece at any instant. The exporter walks 0 → duration in 1/fps steps and screenshots. The result is identical on any machine and does not care whether the browser can hit 60fps in real time.
This buys you something else: you can interrogate any moment. seek(7.2) then read a getBoundingClientRect(). That is what makes the verification below possible.
Workflow
1. Lay out the canvas. Fixed internal coordinates (1080 wide is a good default), scenes absolutely positioned and stacked, only the height varying per aspect ratio. Read references/craft.md before placing type — optical centering is not the same as centering the box, and getting it wrong is the single most common reason a composition "feels off" without anyone being able to say why.
2. Build the timeline. Scene by scene. Give each element one animation covering its whole life. Keep an eye on the four failure modes below; they account for most of the time lost on work like this.
3. Verify by measuring. Before showing anything, write the small script that checks the thing you are unsure about. references/verify.md has the recipes and, more importantly, the traps in the measuring scripts themselves.
4. Export. node export.js → the MP4s. references/export.md covers the encoder flags that decide whether a platform accepts your file.
The four things that will bite you
These are not style preferences. Each one produced a bug that survived visual review.
One animation per element
Entrance, hold and exit go in a single keyframe list. Two animations with fill: 'both' touching the same property collide, and the later-created one wins from time zero — so an element that should appear at 14s is visible from the first frame, with its "before" state applied backwards through the whole piece.
The symptom is bizarre and misleading: content from a later scene bleeding through an earlier one. If you see that, count the animations on the element.
seek() must pause first
A preview loop keeps playing. Set currentTime on a running animation and it advances a few milliseconds before the screenshot lands. This is not a preview annoyance — it silently corrupts every frame of the export, and the result looks plausible enough that you will ship it.
Pause, then set the time, and cancel the preview loop the first time an external seek arrives.
Keyframe times must be monotonic
When you chain moves — "then it hops here, then there" — it is easy to schedule one before the previous finished. WAAPI rejects the whole animation with Offsets must be monotonically non-decreasing, which tells you nothing about which move overlapped.
Clamp on the way in, so the times in your script are intentions rather than fragile arithmetic:
const push = (t, s, ease) => { t = Math.max(t, lastT); lastT = t; /* ... */ };
The same hazard reappears in anything assembled from
Установить motion-graphics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл motion-graphics?
Build frame-exact motion graphics — animated logos, kinetic typography, brand videos, animated titles and social clips — as a single HTML file driven by a paused Web Animations timeline, then export them to MP4 in 1:1, 4:5 and 9:16. Use this whenever someone wants to animate a wordmark or logo, make a video from text, build a title sequence or lower third, produce a clip for LinkedIn / Instagram / Reels / TikTok, "turn this design into a video", animate a landing-page hero, or export a web animation to a video file — and also when an existing animation of this kind needs fixing, retiming, restyling or re-exporting. Reach for it even if the person only says "animate our logo", "make this move", or "I need a short video for the launch", without naming any of the above.
Как установить скилл motion-graphics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл motion-graphics запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic