One style $9 · any 5 for $29 · all 140 styles $79 · Team $199One style $9 · any 5 $29 · all $79 →

← Blog

HTML to MP4 with Claude Code and HyperFrames, step by step

ReelStyles ·

To turn an HTML page into an MP4, put the page in a HyperFrames project and run npx hyperframes render --output video.mp4. HyperFrames opens the page in a hidden Chrome, jumps to each frame by number and encodes the frames with FFmpeg, so no frame is dropped. Claude Code can write the HTML for you, and a style kit such as ReelStyles gives it a designed look to start from.

This guide uses HyperFrames, which is free under Apache-2.0. Facts about it come from its README and docs, which I opened on 2 December 2026.

Why not a screen recorder

A screen recorder captures the page in real time, so a slow frame can be dropped. HyperFrames does not record. It seeks the page to an exact time, takes the frame, and moves on, so a slow machine gets a slow render and an identical file. The HyperFrames page for this says it freezes the clock and seeds randomness, so the same input gives the same video.

What you need

HyperFrames lists Node.js and FFmpeg as its requirements, and render looks for Chrome and tries to install one if it finds none.

Step 1: check the machine

node --version
ffmpeg -version
npx hyperframes doctor

doctor checks your setup. If a render fails later, this is the first command to run again.

Step 2: start a project

npx hyperframes init my-video
cd my-video

This scaffolds a folder with an index.html. A composition plays as plain HTML, with no build step and no React.

Step 3: write the page

You can ask Claude Code to do this. Install the skills first:

npx skills add heygen-com/hyperframes

Then open Claude Code in the folder and ask for a short scene. If you prefer to write it yourself, this is the shape of a composition, shortened from the README:

<div id="stage" data-composition-id="launch" data-start="0"
     data-width="1920" data-height="1080" data-duration="5">
  <h1 id="title" class="clip" data-start="1" data-duration="4"
      data-track-index="1">Launch day</h1>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
  <script>
    const tl = gsap.timeline({ paused: true });
    tl.from("#title", { opacity: 0, y: 40, duration: 0.8 }, 1);
    window.__timelines = window.__timelines || {};
    window.__timelines.launch = tl;
  </script>
</div>

Three rules matter. The root needs data-composition-id, data-start="0", data-width and data-height. Each timed element needs data-start and data-duration, in seconds. The GSAP timeline must be paused and registered on window.__timelines under the same id as the composition.

For a vertical Short, set data-width="1080" and data-height="1920".

Step 4: preview

npx hyperframes preview

A browser editor opens. You can scrub the timeline there and see the title slide in at one second.

Step 5: lint and check

npx hyperframes lint
npx hyperframes check

lint runs without a browser and finds static problems. check tests the scene in a browser for runtime behaviour, layout, motion and contrast. Fix errors before you render.

Step 6: render

npx hyperframes render --output video.mp4

You should end up with video.mp4 in your folder. HyperFrames' HTML to video page lists these outputs: H.264 MP4, transparent WebM, ProRes 4444 MOV, a PNG sequence or a GIF, at 1080p, 1440p or 4K and any frame rate from 1 to 240. Docker is optional and gives byte-identical renders for CI. The flag names are in the CLI reference.

What works in the page

HyperFrames reads GSAP, CSS keyframes, Web Animations, Anime.js, Lottie and three.js. D3 charts work. Audio and video elements in your HTML are mixed into the MP4.

Common errors

Where a style kit fits

The page above gives you one title. A real film has many scenes, a palette and a type system. A kit like Kinetic type holds those decisions, so Claude does not invent them every time. The ReelStyles pricing page lists what the licence covers. My guide to animated videos with Claude Code shows the whole loop from plan to final film.

A frame from the Kinetic type example film

Questions

Can I convert any existing web page to MP4?

You can put it into a HyperFrames project and render it, if the motion is seekable (GSAP, CSS keyframes, Lottie and similar). Motion that depends on user clicks or the real clock needs rewriting onto a timeline.

Does the render need an internet connection?

Local rendering is free, needs no account and adds no watermark.

How do I get a transparent video?

HyperFrames can export transparent WebM or ProRes 4444 MOV. Check the CLI reference for the render flags.

Sources

See all 140 styles and the price