Guides / AI tools

No After Effects: Claude writes animated type posters as HTML and exports MP4 frame by frame

Claude writes each animated poster as one HTML file with a seek(t) function, then exports MP4 locally. Full prompt, 4 type motions, plus HeyGen's HyperFrames.

Do you need After Effects to make an animated type poster? No. This guide shows how Claude writes each animated poster as a single HTML file, then exports it to MP4 frame by frame on your own computer: no video AI and no video credits. The demo event, TAIPEI TYPE WEEK (台北字體週), is fictional, and every image below is a frame captured from the poster files Claude actually wrote. You get the full prompt, how to describe 4 kinds of type motion, the seek(t) trick and two ways to export the video.

01The result: 4 animated type posters, 0 images

One prompt, and Claude wrote 4 HTML files, 207 lines in total. Each is 600×750, 6 seconds at 30fps: 180 frames per poster, 720 frames for the set. Everything on screen is text, colour blocks and code-drawn halftone dots. Not a single image file.

The 4 animated posters for Taipei Type Week: stroke, marquee, riso and weight wave
From top left: stroke by stroke, marquee, riso print, weight wave. All four are labelled as a fictional demo.
  1. A prompt you can edit and reuse (next section).
  2. 4 kinds of type motion and how to describe each one to Claude.
  3. seek(t): the trick that makes every frame land exactly.
  4. Two ways to export MP4: HeyGen's open-source HyperFrames, or the headless-Chrome script we used.

02Step 1: turn the idea into a prompt

Keep the specs and the styles separate. The specs are the same for every poster; the styles get one line each. Our real version used Taipei Type Week as the theme, and its 4 style lines became the 4 posters you see here.

Animated poster prompt (replace the [ ] parts)
Make a set of [number] animated type posters for [event or brand name] ([dates]).

Specs:
- Each poster is its own HTML file, [ratio and size, e.g. 4:5 portrait, 600×750], [length] seconds at 30fps, looping seamlessly.
- Use only HTML / CSS / JavaScript and local font files. No image files, no video AI.
- Every poster exposes a seek(t) function: give it a time in seconds and the frame freezes at exactly that moment, so it can be exported to MP4 frame by frame.
- Nothing on screen is ever completely still.

Styles (one line per poster):
1. [style name]: [which word or character is the hero, how it moves, background and text colour]
2. [style name]: [...]

Put the event name, the dates and a small line "[Fictional event · demo / your note]" on every poster.

03Step 2: how to describe 4 kinds of type motion

Stroke by stroke: one huge 字. Claude split the character into 5 bands and revealed them one at a time with clip-path, about 0.45 s apart, while a Swiss grid draws itself behind. In the last second it all wipes away, landing back on frame one.

The character 字 being written stroke by stroke at three moments
0.6 s, 1.3 s and 3 s: the grey outline is the guide, the vermilion fills in band by band.

Marquee: neon yellow on black, rows of 動 and TYPE IN MOTION running in opposite directions, solid and outlined letters alternating. The Taipei Type Week band in the middle tilts slightly and its letter-spacing breathes.

Neon yellow marquee poster on black with the Taipei Type Week band
Each row travels a whole number of repeats in 6 s, so the loop has no visible seam.

Riso print: a pink layer and a blue layer overprinted with mix-blend-mode: multiply, so overlaps go darker like real riso. The pink layer jumps out of register 8 times a second, and the paper grain is code-generated noise.

Two riso poster frames 0.15 s apart with the pink layer shifted
Two frames 0.15 s apart: the pink 印 and the blue halftone slip out of register.

Weight wave: the letters keep getting bolder and lighter, like breathing. The variable font Inter swings between weight 100 and 900. Sixteen letters and numbers sit in a 4×4 grid, each slightly delayed from top left to bottom right, so the weight rolls through like a diagonal wave.

The weight-wave poster at three moments with letters at different weights
The wght number at top right is the live weight: 300, 891, 376.

04Step 3: give every poster a seek(t)

This is the most important trick in the whole guide. Ask Claude to give each poster a seek(t) function: pass a time in seconds and the poster freezes at exactly that frame. Every movement is calculated from t, not left to the browser's own playback.

Excerpt of the seek(t) code from the weight-wave poster
Excerpt from p4-weight.html: every letter's weight is calculated from the time t.
  1. No dropped frames: however slow the computer, frame 87 is always frame 87, so the video never stutters.
  2. Seamless loops: start with t = t % 6 and second 6 equals second 0.
  3. Any frame can be the cover: seek(3) is the frame at 3 seconds.
  4. Avoid Math.random(): for randomness (like the riso misregistration), derive fixed pseudo-random values from the time so every export is identical.

05Step 4: export to MP4 frame by frame

With seek(t) in place, exporting is simple: open an invisible browser, jump to frame 1 and screenshot, jump to frame 2 and screenshot… then join the screenshots into a video. Every frame is computed on your own computer: no uploads, no credits.

Option A: use HyperFrames, ready-made. It's HeyGen's open-source framework, summed up as "Write HTML. Render video. Built for agents.", under the Apache 2.0 licence. It needs Node.js 22+ and FFmpeg.

  1. In your terminal, type: claude plugin marketplace add heygen-com/hyperframes
  2. Then: claude plugin install hyperframes@hyperframes (other AI tools can use npx skills add heygen-com/hyperframes)
  3. Create a project: npx hyperframes init my-video, then cd my-video
  4. Preview: npx hyperframes preview (live reload in the browser)
  5. Export: npx hyperframes render to get an MP4

Option B: what we actually used. To be honest, these 4 posters were not rendered with HyperFrames. Claude wrote them in the HyperFrames style, then wrote a separate headless-Chrome script: puppeteer-core calls seek() for each frame, takes a screenshot and pipes it straight into ffmpeg to make the MP4. All 720 frames ran locally.

Export script prompt (replace the [ ] parts)
Write me a Node.js script that exports every HTML poster in [folder] to MP4:
- Use puppeteer-core to open headless Chrome with the viewport set to [width×height].
- Wait for the fonts to load, then for every frame from 0 call seek(frame ÷ 30) and screenshot #stage.
- Pipe the screenshots straight into ffmpeg at 30fps, H.264, yuv420p.
- Each poster is [length] seconds; save to [out folder].

06Good to know

  1. TAIPEI TYPE WEEK (11.21–11.30) is a fictional event; all 4 posters are demos and are labelled as such.
  2. Use fonts licensed for commercial use. Noto Sans TC, Inter and JetBrains Mono, which we used, are all under the SIL OFL.
  3. Keep font files next to the HTML with relative paths, and wait for fonts to load before capturing, or frame one shows the system fallback font.
  4. Before posting to Reels, place the 600×750 poster inside a 1080×1920 frame, or ask Claude to build it at 9:16 from the start.
  5. HyperFrames is HeyGen's open-source project; follow the official GitHub for commands, as they may change between versions.

Sources

Related guides