How to check an SVG animation
What this checker detects
- SMIL —
<animate>,<animateTransform>,<animateMotion>,<animateColor>and<set>, includingbegin,dur,repeatCount,calcModeandkeyTimes/valuesconsistency. - CSS animation —
@keyframesblocks andanimationdeclarations in<style>or inlinestyle="", matched back to the elements they target. - Script animation —
<script>blocks, inlineon*handlers andjavascript:URLs, which are also flagged as a security risk. - Broken animations — missing
dur, a target that does not exist,animation-namewith no matching keyframes, zero duration, andkeyTimesthat cannot line up withvalues.
Why an animated SVG looks dead
The three failures below cover most real-world cases, and each one is reported by the diagnostics panel above.
1. The animation has no duration
In SMIL, dur defaults to indefinite. An <animate> without dur simply never advances, so the graphic sits still with no error in the console.
2. The animation is outside its target
<animate> must be a child of the element it animates, or point at it with href="#id". Moving an animation into a sibling group is a silent no-op.
3. CSS keyframes are scoped to the wrong element
SVG elements use transform-box differently from HTML boxes. A spinner that rotates around the wrong origin, or an animation-name that does not match any @keyframes, produces a static image.
Why check SVG animation before you ship
An animated SVG fails quietly. A missing dur, a mistyped @keyframes name or a rule that matches no element throws no console error — just a graphic that sits still. When you check SVG animation files before release, you catch those silent failures instead of your visitors finding them.
- Embedding changes behaviour. The same file can animate inline, freeze inside an
<img>tag, or lose its scripts under a strict Content-Security-Policy. The diagnostics tell you which features each embedding method will break. - Three animation engines, three rule sets. SMIL, CSS keyframes and JavaScript timers each fail differently. This checker parses all three from the raw XML instead of guessing from a screenshot.
- Timing bugs need slow motion. A one-frame flicker or a misaligned
keyTimeslist is invisible at normal speed. Replay at 0.25× and read the exact begin, duration and repeat count of every animation. - Private by construction. Files never leave the browser, so you can check SVG animation in client work and unreleased product assets without a data-processing agreement.
Sample SVG files for testing
Six hand-built fixtures, one per common failure mode. Download a file and drop it onto the checker above to see the matching diagnostics.
01-path-motion.svg— SMILanimateMotionalong a curved path; two healthy animations, zero errors.02-css-loader.svg— CSS@keyframesloader with staggered delays; three CSS animations.03-missing-duration.svg— SMIL withoutdur; the classic “why does nothing move” error.04-keyframes-typo.svg— mistyped keyframes name plus a selector that matches no element.05-mixed-smil-css-js.svg— SMIL, CSS and a script in one file, with the script security warning.06-click-trigger.svg— event-triggered SMIL (begin="go.click") that stays still until clicked.
Building a success state? Browse the animated check mark gallery — downloadable SVG and GIF ticks, each with a one-click link to test it in this checker.
FAQ
Does this tool upload my SVG anywhere?
Can it check SMIL animations?
Why does my SVG animate in the preview but stay still on my site?
<img src="x.svg"> runs CSS and SMIL fine but blocks scripts, while inline SVG lets everything run. A Content-Security-Policy can also strip inline styles. Check the diagnostics for script usage first.