SVG animation to MP4 with Claude Code and HyperFrames
To convert an animated SVG to MP4, wrap the SVG in a HyperFrames project, set the length you want and run npx hyperframes render --output badge.mp4. HyperFrames draws your SVG in a hidden Chrome at each exact frame time, so CSS keyframes, Web Animations and GSAP motion come out frame by frame. Claude Code can do the wrapping for you. If your SVG uses SMIL <animate> tags, ask Claude to move that motion onto a GSAP timeline first.
I use this route for logos and pictograms in my ReelStyles films. The facts below come from the HyperFrames docs and from each converter's own page, opened on 2 December 2026.
Why a plain converter can lose the animation
An animated SVG has no fixed length. A CSS animation can loop forever, and a script can change things at any moment. A converter has to decide how long to record and how to step the animation. Two open-source converters show the different choices:
- svg-video (MIT) opens your SVG in a headless browser, records it and encodes with FFmpeg. It reads the length from SMIL tags by itself. It cannot detect CSS or JavaScript animation, so for those you give the length with
-d <seconds>. If you forget, the video can be too short or cut mid-motion. - svg-to-video steps a CSS-animated SVG one frame at a time with screenshots. It needs your SVG to follow its conventions: a
--startcustom property, a paused play state and ananimation-delaythat includes--start. An SVG made without those lines will not move correctly. Its page lists no licence.
Both are useful. They need the SVG to fit them. HyperFrames asks for a different thing: you describe the length, and your motion has to be CSS, Web Animations or GSAP.
What you need
- Node.js 22.19 or newer
- FFmpeg
- An animated SVG, or a static one you want animated
- Claude Code, if you want it to build the wrapper
Step 1: put the SVG in a project
npx hyperframes init my-svg cd my-svg
Step 2: tell Claude the size, length and motion
Install the skills once so Claude knows HyperFrames:
npx skills add heygen-com/hyperframes
Then in Claude Code:
Use logo.svg in this project. Make a 1080 by 1080 composition, 4 seconds long. Keep the existing CSS animation, and cap the loop at the 4 seconds. Show me a still at 2 seconds.
Claude places the SVG in the page, sets data-width, data-height and data-duration on the root, and registers a paused timeline if one is needed.
Step 3: preview
npx hyperframes preview
You should see the SVG move in a browser editor, and you can scrub the timeline.
Step 4: check and render
npx hyperframes lint npx hyperframes check npx hyperframes render --output badge.mp4
badge.mp4 appears in the folder. Add a format flag for GIF, WebM or MOV. WebM and MOV keep transparency, which suits a logo over footage. HyperFrames lists 1080p, 1440p and 4K, and frame rates from 1 to 240.
If the SVG uses SMIL
HyperFrames' SVG page lists CSS keyframes, Web Animations and GSAP as supported. It does not mention SMIL. Ask Claude to convert:
logo.svg uses <animate> and <animateTransform>. Rebuild the same motion as a paused GSAP timeline with the same timing, and remove the SMIL tags.
Then render again and compare the still to the old SVG in a browser. If timing differs, say which element and by how much.
Which tool when
| Need | Pick |
|---|---|
| One SMIL SVG to MP4, quickly | svg-video, with its length detection |
| A CSS SVG written for the converter | svg-to-video |
| A logo or pictogram that you may change, add sound to, or place in a longer film | HyperFrames with Claude Code |
| A whole film in one drawn look | A style kit on top of HyperFrames |
For the build side of this, see animated SVG with Claude Code. For styles that are drawn shape by shape, look at Pictogram motion. The ReelStyles pricing page shows what the kits cost.

Common errors
- The MP4 is a still image. The motion is SMIL or script-driven and not on a timeline. Convert it to GSAP.
- The video ends too early. The
data-durationon the root is shorter than the animation. Raise it. - The loop jumps at the end. An infinite CSS loop does not fit your length. Set the loop count so one cycle fits.
- The render fails. Run
npx hyperframes doctorand fix what it reports.
Questions
Does HyperFrames cost anything for SVG to MP4?
The engine is Apache-2.0. Local renders need no account and add no watermark, per its SVG page.
Can I keep a transparent background?
Yes, with a WebM or MOV export. The HyperFrames page lists WebM with alpha and ProRes 4444 MOV.
Is MP4 lossless?
No. The HyperFrames page says no video format is fully lossless, and you control the quality. It lists a high-quality preset and a 4:4:4 master.
Sources
- HyperFrames, SVG animation to MP4 (checked 2 December 2026)
- HyperFrames CLI reference (checked 2 December 2026)
- jcubic/svg-video (checked 2 December 2026)
- sharmaeklavya2/svg-to-video (checked 2 December 2026)