with-svg-animation

with-svg-animation is a skill for Claude Code from robcsaszar/frontend-kit. It costs 120 tokens per session (1,409 once invoked), scanned A, original, MIT.

A checklist for animating Scalable Vector Graphics (SVG), a format for drawings made from shapes and paths. It focuses on artwork details that affect draw-on, hover, morph, clip, and scroll-linked animations.

In plain words
What is it for?
Use it before writing SVG animation code to inspect path data, choose the right reveal method, handle inner elements, and assess performance.
Why use it?
It helps prevent animations that fail because of disconnected paths, filled artwork, transforms, or excessive paint work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the robcsaszar-frontend-kit plugin — 4 skills shipped together

Good fit Use it before writing SVG animation code to inspect path data, choose the right reveal method, handle inner elements, and assess performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robcsaszar/frontend-kit/with-svg-animation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add robcsaszar/frontend-kit --skill with-svg-animation
Clone the repo
git clone --depth 1 https://github.com/robcsaszar/frontend-kit

Made for: Claude Code.

Or install robcsaszar-frontend-kit, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for with-svg-animation

README.md
[![agentmods](https://agentmods.dev/badge/skills/robcsaszar/frontend-kit/with-svg-animation.svg)](https://agentmods.dev/skills/robcsaszar/frontend-kit/with-svg-animation)
Your own site
<a href="https://agentmods.dev/skills/robcsaszar/frontend-kit/with-svg-animation"><img src="https://agentmods.dev/badge/skills/robcsaszar/frontend-kit/with-svg-animation.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.01409
Opus 5 $0.00060 $0.00705
Sonnet 5 $0.00024 $0.00282
Haiku 4.5 $0.00012 $0.00141

Measured 7d ago against content hash 30755ca2030b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

with-svg-animation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/with-svg-animation/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

with-svg-animation

You already know how to animate SVG. What you reliably fail to do is raise these conditions when the user hasn't named them — a vague request produces a plausible answer that breaks on the user's actual artwork. This body is a pre-flight, not a tutorial.

Pre-flight — answer before writing any code

Read the actual path data; if you can't see it, ask for it. Never answer from the request alone — every trap below is invisible in the request and obvious in the markup.

  1. Is the thing being animated the root <svg>, or an element inside it? Inner elements need transform-box.
  2. Does the target d contain more than one M command? One <path> can hold several disconnected subpaths.
  3. Is the artwork stroked or filled? A draw-on animation only animates a stroke; a filled logo needs stroke-then-crossfade, or a mask wipe instead.
  4. How many elements animate at once, and is it scroll-linked? Dash and d are paint-level, not compositable — dozens of them on a mid-range phone is a different problem than one logo, and answering "many" or "scroll-linked" puts you under the paint budget in the last NEVER before you write anything.

Already broken? Match the symptom

Symptom Cause
Shape swings across the canvas instead of pivoting transform-box missing on an inner element
Strokes start together but finish at different times One <path>, several subpaths — dash pattern restarts per subpath
Morph hard-cuts halfway instead of tweening Command sequences don't match, so interpolation fell back to discrete
Reveal edge drifts or scales with the artwork clip-path and transform on the same node

Traps

Dash patterns restart at every subpath. A single <path> whose d has three M commands is not one continuous dash run — each subpath gets its own copy of the pattern, so all three start together and finish at different times. It reads as a glitch. Split the d into one <path> per subpath (a mechanical edit at each M) to get per-stroke control and staggering. pathLength does not rescue the single-path version.

Read the full file on GitHub · 64 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 64 lines · 120 tokens per session scan A 30755ca2030b

Subscribe to this mod's changes

with-svg-animation is a skill published in the GitHub repository robcsaszar/frontend-kit (1 stars, last pushed 5d ago), licensed MIT. It adds 120 tokens to every session and 1,409 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

oat-css

Our preferred CSS framework — ultra-lightweight, semantic HTML UI library (8KB). Style web UIs with semantic HTML and minimal classes. Override with app-level SCSS only when necessary.

spinspire/pocketbase-sveltekit-starter · 42 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality and accessible markup. Use this skill when the user asks to build or beautify web components, pages, applications, landing pages, dashboards, artifacts, or React/HTML/CSS UI. Generates creative, polished code that avoids generic AI…

spinspire/pocketbase-sveltekit-starter · 76 tokens

dryui-build

Experimental DryUI layout-only skill that extracts responsive page structure from design images as abstract colored blocks with strict shell areas, fixed page container queries, and visual self-checks. Use when testing design-image to layout-skeleton extraction.

rob-balfre/dryui · 49 tokens

dryui-build

Experimental DryUI page-layout skill that builds colored block page prototypes with mobile-first container queries. Use when testing page layout, responsive regions, dashboards, shells, or full-page structure before detailed UI styling.

rob-balfre/dryui · 44 tokens

dryui-build

Experimental DryUI layout-only skill that extracts responsive colored-block page structure from design images using a fixed page container query contract. Use when testing full-page or section layout skeletons before detailed UI implementation.

rob-balfre/dryui · 43 tokens

dryui-build

Experimental DryUI page skill for image-to-app layouts using a copyable lint-safe layout template and a fixed menu of layout primitives. Use when testing reliable stage 1 extraction, stage 2 implementation, and stage 3 build repair.

rob-balfre/dryui · 51 tokens