whiteboard-animation
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "make a whiteboard animation", "draw-on explainer", "VideoScribe style", "hand-drawn explainer video"…
от iart-ai★ 179 звёзд на GitHubОб этом скилле
Whiteboard Animation
The VideoScribe / Doodly look: a hand draws illustrations and handwriting onto a board, stroke by stroke, while narration explains. Build it from animated SVG paths that draw themselves plus a marker hand that tracks the drawing tip, then sequence elements so the board fills up in narration order.
When to use
- A "scribe" / doodle explainer where a hand draws art and text onto a whiteboard.
- Animating a sketch or logo being drawn live, line by line.
- Handwriting that writes itself in, synced to a voiceover.
- Turning a static illustration into a guided, stroke-by-stroke reveal.
Core mechanic: SVG stroke draw-on
A path "draws itself" by animating stroke-dashoffset from its full length down to 0 — the dash gap shrinks, exposing the stroke from start to end.
const path = document.querySelector("#stroke");
const len = path.getTotalLength();
path.style.strokeDasharray = len; // one dash as long as the whole path
path.style.strokeDashoffset = len; // pushed fully out of view = invisible
path.getBoundingClientRect(); // force reflow before transitioning
path.style.transition = "stroke-dashoffset 1.2s linear";
path.style.strokeDashoffset = "0"; // draws start → end
Use pathLength="1" on the <path> to normalize: then stroke-dasharray:1; stroke-dashoffset:1 draws any path regardless of real length, and a single eased value (0→1) is the draw progress. linear (or a very gentle ease) reads as a steady hand; avoid ease-in-out on long strokes — it makes the marker lurch.
The marker hand follows the tip
The illusion lives or dies on the hand sitting at the exact point being drawn. Sample the path at the current draw progress and place the hand image there each frame; the pen-nib of the hand asset must align to the path point (offset the image so its tip, not its corner, lands on the point).
const hand = document.querySelector("#hand"); // <img>/<g>, tip at its top-left "nib"
const NIB = { x: 6, y: 4 }; // nib offset inside the hand art
function drawOn(path, hand, dur = 1200) {
const len = path.getTotalLength(), t0 = performance.now();
path.style.strokeDasharray = len;
(function frame(now) {
const k = Math.min(1, (now - t0) / dur); // 0→1 progress
path.style.strokeDashoffset = len * (1 - k); // expose start→tip
const p = path.getPointAtLength(len * k); // current tip in SVG coords
hand.setAttribute("transform", `translate(${p.x - NIB.x} ${p.y - NIB.y})`);
if (k < 1) requestAnimationFrame(frame);
})(t0);
}
getPointAtLength(len * k) is the workhorse: it returns the on-path coordinate at the same progress driving strokeDashoffset, so the nib stays glued to the growing stroke. Lift the hand (fade out, jump to the next start) between separate strokes so it doesn't slide across blank board.
Reveal order — the board fills up
Sequence elements the way a person would draw the scene, in narration order: each illustration and each handwriting block draws in, holds, then the next begins. Stagger strokes within one drawing; hold a beat after each element lands before moving the hand on. One drawing = one beat of the VO. Don't draw two things at once — the eye (and the single hand) can only follow one tip.
| Step | Mechanism |
|---|---|
| Draw a stroke | stroke-dashoffset len→0, hand at getPointAtLength(len*k) |
| Multi-stroke drawing | stagger strokes; hand hops to each new stroke's start |
| Handwriting | per-letter/word strokes drawn in reading order, hand following |
| Hold | pause hand off-board after element completes (0.4–1.0s) |
| Next element | move/fade hand to next start; begin its draw-on |
| Erase / clear | wipe or reverse-draw to clear the board for the next section |
Converting art to drawable paths
Draw-on needs single-stroke, open paths in draw order — not filled compound shapes.
- Author or trace line art as open strokes (Illustrator/Inkscape: outline, not fill). A filled blob has no "stroke" to animate; convert fills to a centerline stroke or draw an outline path and fill it after the outline completes.
- Order matters: the
<path>elements should appear in the SVG in the order a hand would draw them — animate them in document order. - Long continuous lines look most natural; break only where a real pen would lift.
- For solid color regions: draw the outline stroke first, then fade/grow the fill in behind it (
opacityor a clip-reveal) so it reads as "colored in after." - Handwriting: use a stroke/handwriting font, convert glyphs to paths, then draw each glyph's path in stroke order. Or fake it: mask the word and sweep a reveal left-to-right with the hand riding the mask edge.
Marker hand asset
A PNG/SVG of a hand holding a marker, with the nib at a known point. Measure the nib offset once (NIB above) and reuse it. Keep one hand asset for the whole piece for consistency. Mirror it (scaleX(-1)) only if you need a lef
Установить whiteboard-animation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл whiteboard-animation?
This skill should be used when the user asks to "make a whiteboard animation", "draw-on explainer", "VideoScribe style", "hand-drawn explainer video", "animate a sketch being drawn", "do a doodle/scribe video", "show a hand drawing the illustration", or "animate handwriting appearing on a whiteboard". Covers SVG stroke draw-on, a marker hand that follows the path tip, staggered reveal, erase/wipe transitions, and narrated export.
Как установить скилл whiteboard-animation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл whiteboard-animation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub