/video-to-css:video-to-cssfrom Video to CSS
Converts video clips (mp4, mov, webm, gif) into editable HTML/CSS animations with CSS keyframes matched to real timestamps, runtime custom-property controls, and browser-based verification tools.
Ships in Video to CSS. 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; scripts run unread.
Turn a reference clip into a strict HTML/CSS scene whose motion is declared in CSS and whose
playback needs no JavaScript, then prove — with the toolkit in scripts/ — what matches and what
does not. The deliverable is a construction system with controls, not a pixel replay.
cd <this skill>/scripts && npm install # [email protected] + [email protected], pinned
npx playwright install chromium # webkit optional for smoke coverage
# needs ffmpeg + ffprobe on PATH and Node >= 20
node v2css.mjs help
node v2css.mjs init clip.mov [--out dir] [--start s --duration s]:
inspects the clip (sha256, display size after rotation and pixel aspect, colour tags, every frame
PTS, VFR flag), guesses loop vs one-shot from the seam, writes scene.json, a starter scene/
(stage px = display px, measured background), params.json, a REFERENCE.md with the clip facts,
and a contact sheet. Pick a window of a long clip with --start/--duration; long or high-rate
windows are compared on an even subset of real frames (reference.maxSamples, default 480).
Use PTS, never index / fps. Record provenance (synthetic, camera, AI-generated, a render) in
REFERENCE.md. → references/measuring.mdextract frames (contact sheet + dense samples around events); measure parts,
pivots, palette, trajectories, periods, delays, easing. Label every number
measured / estimated / chosen / fitted in params.json. Loop-mean frames and per-pixel temporal
variance maps locate static layers and moving parts fast.templates/). Nested wrappers: layout > parent motion > local pivot > appearance. Every cycle an
integer divisor of the loop; offsets via negative animation-delay.sbs after every step (reference | scene | diff at chosen times,
--crop for small parts), fix composition and timing before detail, look for causes (pivot,
transform order, inheritance of custom properties, gaps between layers) rather than compensating
offsets. For long work, freeze each checkpoint. Compare it with
triptych --prev, and check motion with playback, jumps and frames (sub-frame).
Find a defect's owner with attribute before shading over it, and measure edges and lines with
profile. → references/review.md, references/lessons.mdcheck <scene-dir>: strict audit, full compare at every reference frame,
negative controls, per-animation sensitivity, controls + multi-instance, review page.
Four outcomes are reported separately: structural, appearance, temporal, editability.
→ references/harness.mdscene/, evidence images, commands, limitations.
Never quote a single "% similarity"; report the named measures.No <img> <video> <canvas> <svg> <script> <iframe>, no url()/image-set(), no @import/@font-face,
no sprite sheets or per-frame replacement inside scene/. Namespaced selectors (.v2c-<id>…),
keyframes (v2c-<id>-…) and custom properties (--v2c-<id>-…). All animations start at load.
A prefers-reduced-motion pose. The reference clip and its frames stay out of the exported scene.
references/css-primitives.md (opens in a new tab)references/harness.md (opens in a new tab)references/lessons.md (opens in a new tab)references/measuring.md (opens in a new tab)references/review.md (opens in a new tab)references/scene-contract.md (opens in a new tab)scripts/lib/audit.mjs (opens in a new tab)scripts/lib/capture.mjs (opens in a new tab)scripts/lib/checkall.mjs (opens in a new tab)scripts/lib/compare.mjs (opens in a new tab)scripts/lib/diagnose.mjs (opens in a new tab)scripts/lib/init.mjs (opens in a new tab)scripts/lib/metrics.mjs (opens in a new tab)scripts/lib/perf.mjs (opens in a new tab)scripts/lib/pipeline.mjs (opens in a new tab)scripts/lib/png.mjs (opens in a new tab)scripts/lib/review.mjs (opens in a new tab)scripts/lib/sbs.mjs (opens in a new tab)scripts/lib/server.mjs (opens in a new tab)scripts/lib/sheet.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gokayfem/video-to-css --plugin video-to-cssOther plugins' skills for the same job