SVG animation styles
This skill teaches how to draw and animate a video shot as vector SVG + keyframe tracks, in 24 visual styles. The result is a small JSON (drawing + numbers, no code) that any player can play and that passes a safety validator. The catalog comes from VídeoIA (a SaaS that turns ideas into animated Shorts), but the skill does not depend on it: the format and the scripts here work on their own. Repository: https://github.com/lcspaiva87/videoia-styles
How to work
- Pick the style (table below) and read only its file,
styles/<id>.md. - Read
references/format.md(the JSON, tracks and validator rules) before the first scene. For full-body characters, walking, jumping and actions, also readreferences/motion.md. - Build the scene:
background, the drawing insvg(only the elements inside<svg>), andtracksthat move<g id="...">groups of the drawing. One main action per shot; everything else is ambient motion. - Check it:
node scripts/validate.mjs scene.json(Node 18+, no dependencies). Fix until there are no errors. - Look at it, writing the preview outside the skill folder (use
--outwith a scratch folder):node scripts/preview.mjs scene.json --out /tmp/scene.html: a player with play and a time slider, for the browser.node scripts/preview.mjs scene.json --t 1.2 --out /tmp/f.svg: one still frame. To view it as an image, convert withrsvg-convert -w 360 /tmp/f.svg -o /tmp/f.png(if available) or open the SVG in a browser.- Check 3 or 4 moments (before, during and after the action) and fix proportions, overlaps and anything that leaves the frame.
Complete scenes made only with this skill (a cat jumping between rooftops in comics, watercolor and pixel art)
are in examples/.
Without Node (claude.ai), follow the rules in references/format.md strictly and show the frame as a complete
SVG (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1920"> + background + svg).
Rules for every style
- viewBox
0 0 1080 1920for vertical (9:16) and0 0 1920 1080for horizontal (16:9); (0,0) is the top-left corner. - Drawing elements only (g, path, rect, circle, ellipse, polygon, polyline, line, text, tspan, textPath, defs,
symbol, use, marker, gradients, pattern, clipPath, mask, filter and fe* except feImage; exact list in
references/format.md). Never: script, style, image, foreignObject,a, animate/set,on…attributes, an href that isn't#id, aurl()that isn'turl(#id),<!-- -->comments, ids starting with__. - Each track moves a
<g id>that appears exactly once and has notransformoropacityof its own. - Well-formed XML: every attribute quoted,
&,<,>in text. Use single quotes for attributes (<rect fill='#123456'/>) so nothing needs escaping inside the JSON. - In vertical video, keep the bottom band (y > 1450) free of anything important: captions usually go there.
- Same character = same colors, hair, clothes and proportions in every scene.
Which style to use
| id | Style | Good for |
|---|---|---|
desenho2d | 2D Drawing (default) | Stories, mystery, light horror; flat, dark vector |
anime | Anime | Emotion, drama, action; big eyes, dramatic light |
pixel | Pixel art | Games, nostalgia, tech; 8 px grid |
lowpoly | Low-poly 3D | Places, travel, explainers with a moving camera |
recorte | Paper cutout | Legends, fables, history; collage stop-motion |
silhueta | Silhouette | Horror, drama, epic moments; black against a strong sky |
livro | Children's book | Kids' stories, fables, lessons; pastel and soft |
adesivos | Stickers | Explainers, lists, tips; sticker and sticky-note collage |
caderno | Notebook | Lessons, explanations, reasoning; pen doodles |
animacao3d | 3D animation | Stories with cute characters; volume and soft light |
massinha | Claymation | Humor, short stories; clay stop-motion |
blocos | Building blocks | Kids, construction, processes; plastic bricks |
retro3d | 2000s video game | Games, nostalgia, early internet; old 3D and fog |
maquete | Miniature | Cities, routines, logistics; tilt-shift miniature |
quadrinhos | Comics | Action, humor, heroes; black ink, halftone, BAM! |
anime90 | 90s anime | Nostalgia, drama, sci-fi; cels and film grain |
cartaz | Vintage poster | History, propaganda, events; 3 or 4 inks |
aquarela | Watercolor | Poetry, nature, memories; transparent brushwork |
isometrico | Isometric | Cities, processes, systems; game-map look |
holograma | Hologram | Science fiction, technology, data |
neon | Neon cyberpunk | Future, city, crime, night |
planta | Blueprint | How things work, engineering, inventions |
termica | Thermal camera | Mystery, survival, science, animals |
codigo | Green code | Hackers, programming, simulation, AI |
The style ids are the ones VídeoIA uses, so scenes stay compatible with it. Sample images of every style are
in the samples/ folder of the GitHub repository (outside the skill folder).