R_REDDYX.XYZ
DevToolsTypeScript★ 759⑂ 124 forksMIT

JDhruv14/line-art-animation

ANIMATED LINE-ART SVG COMPONENTS

A TypeScript library and Claude skill for creating animated line-art SVG illustrations: figures walk, react to clicks, scenes have a day/night cycle. Everything is drawn in SVG in real time and stays sharp at any scale.

// KEY FEATURES

  • Four dependency-free modules: drawing, gait, physics, day/night palette
  • Figures walk, ride, react to pointer and clicks
  • Scenes with day/night cycle, wind, lit windows and reflections
  • Deterministic frame capture for video rendering

// DEEP DIVE: HOW IT WORKS

The project consists of a skill for Claude Code and a small dependency-free TypeScript library. The library contains four modules: ink.ts — pen drawing primitives (limb outlines as two open strokes around a curve through joints), gait.ts — gait solver (stance foot slides back at travel speed, swing foot follows a minimum-jerk path), motion.ts — springs, pendulums and wind, daynight.ts — time-of-day palette. Figures are drawn in their own coordinate space (~95 units tall, feet at y=120) and placed into a scene via transform.

Unlike typical SVG animations, this uses a procedural approach: gait is not baked into keyframes but computed physically, so feet never slide at any speed. The Village demo shows a full world: machiya, tea house, bath house by a canal, scheduled villagers, a cat, birds, a boat, lit windows with reflections, about a dozen interactions (click people, windows, lanterns, wind chime, cat, birds, water). Time control via dragging sun/moon or URL flags (start, tau, day, debug).

Requirements: Node 22.18+ to run examples. Skill installs by cloning into ~/.claude/skills/line-art-animation or .claude/skills/ inside a project. Skill requires Claude Code. Library uses strict TypeScript (npm run typecheck). Video renders via deterministic frame capture through scripts/.

// USE CASES

Best for: developers of interactive SVG illustrations and Claude skill authors

  • Create an interactive scene with walking figures and a day/night cycle
  • Turn a video reference into a looping line-art component with exact gait matching
  • Render a 30-second 1080p video via deterministic frame capture

// QUICK START

git clone https://github.com/JDhruv14/line-art-animation ~/.claude/skills/line-art-animation
npm install
npm run dev

Commands are taken from the repository README — check the current version on GitHub before running.

#claude-skill#line-art#svg-animation#typescript
Open on GitHub →

New repositories every 30 minutes

REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.

Join on Telegram
← Full catalog·Full index

// SIMILAR REPOSITORIES

ANDROID TV DEBLOAT AND LAUNCHER★ 821SVG ANIMATION SKILL FOR CLAUDE CODE★ 837OLD PHONE INTO PC CONTROL PANEL★ 635GPUCANVAS: THOUSANDS OF LIVE DOM NODES ON GPU★ 519OPINIONATED LIST OF CODE QUALITY TOOLS★ 384OPEN-SOURCE DASHBOARDS FROM NATURAL LANGUAGE★ 246

← FULL CATALOG

JDhruv14/line-art-animation — Animated Line-Art Svg Components