line-art-animation

A Claude skill and four dependency-free TypeScript modules for live SVG line-art animation: hand-inked figures with a solved walk cycle, springs and wind, and a day-to-night palette, plus a frame-exact video capture script.

  • 78 GitHub stars
  • ⚖️ MIT

Last verified: write-up checked

git clone https://github.com/JDhruv14/line-art-animation ~/.claude/skills/line-art-animation
line-art-animation — skill preview

What it is

line-art-animation packages a drawing style as a skill. The look is ink on paper: figures whose limbs are two open pen strokes around a curve through the joints, in scenes that move from late afternoon to night. SKILL.md and its references describe the workflow and the rules that make the style work. They also cover motion, scenes, verification, matching a reference clip and rendering video. When you ask for a scene, Claude copies the lib/ folder into your project. It shows you one figure first and checks the motion frame by frame before handing the scene over. The library has four modules. ink.ts draws the primitives. gait.ts solves walking and running. The planted foot slides back at exactly the travel speed, the swing follows a minimum-jerk path and the heel peels off the toe. Hip height follows what the legs can reach, and clothes drawn around the knees open and close with the stride. motion.ts adds springs, pendulums and wind, and daynight.ts gives sky, paper and ink colours for any time of day. At night, applyPalette() turns the drawing pale on indigo while windows and lanterns glow. Two examples ship with it. One is a single walker in about 150 lines. The other is a full village with machiya, a tea house, a canal, villagers on schedules and about a dozen interactions. A capture script and clip-measuring tools turn scenes into deterministic video and match a reference walk. It is MIT licensed. We read the README and did not run the examples.

Who it's for

  • Front-end developers who want illustrated, interactive hero scenes that stay sharp at any size
  • Creators who want looping line-art clips or 1080p videos without drawing every frame
  • People matching an animation to a reference clip's walk

Requirements

Requirements

  • Claude Code (the skill is cloned into the skills folder)
  • Node 22.18 or newer to run the examples
  • ffmpeg and a local Chrome or Chromium for video capture

Setup

  1. Step 1

    bash
    git clone https://github.com/JDhruv14/line-art-animation ~/.claude/skills/line-art-animation
  2. Step 2

    bash
    Or clone into .claude/skills/ inside a single project

مهارة لـ Claude مع أربع وحدات TypeScript بلا اعتماديات لرسوم متحركة بأسلوب الحبر على الورق في SVG: شخصيات تمشي بحركة محسوبة، ورياح ونوابض، وألوان تتغير من النهار إلى الليل، مع سكربت لتصوير الفيديو إطاراً بإطار.

Examples

A new scene

Prompt
prompt
Make a line art animation of a bakery at dawn: a baker carrying trays, steam from the oven, a cat in the window.

Expected output: First example request in the README.

Match a clip

Prompt
prompt
Turn this clip into a looping line-art component, matching its walk exactly.

Expected output: The README says to attach or link the clip.

Day-night and video

Prompt
prompt
Add a day-night cycle to the scene and render a 30-second 1080p video.

Expected output: Uses daynight.ts and the capture script.

Render the village to MP4

bash
bash
npm run dev
node scripts/capture.ts "http://localhost:5173/examples/village/?debug&capture&day=30&start=0.3" \
  captures/village 900 30 1920 1080
ffmpeg -framerate 30 -i captures/village/f%04d.png -c:v libx264 -preset slow -crf 15 \
  -pix_fmt yuv420p -movflags +faststart -tune animation village.mp4

What it does: Headless Chrome advances the scene exactly one frame between screenshots, so output does not depend on machine speed.

Pros & cons

Pros

  • Pro:Pure SVG drawn live: scales cleanly and responds to the pointer (click figures, drag the sun, make wind)
  • Pro:gait() solves the legs instead of keyframing, so feet stay planted and the body rises and dips with each step
  • Pro:No dependencies in lib/ and none in the capture script
  • Pro:Claude shows one figure for approval before building the rest and checks motion frame by frame
  • Pro:MIT licensed

Cons

  • Con:Very new (created 2026-11-10 when read); expect changes
  • Con:Install path is a manual git clone, no plugin marketplace entry
  • Con:The style is one specific look (hand-inked figures on paper), not a general animation tool