8 November 2026
إعلان موشن لمشروعك بالكود: HyperFrames مع Claude Code خطوة بخطوةA Motion Ad for Your Business in Code: HyperFrames with Claude Code, Step by Step
Install HyperFrames inside Claude Code, describe your ad in plain words, get a ready MP4, and edit it with one sentence instead of opening an editor.
Who this guide is for
Small business owners and creators who want a motion ad without a motion designer or After Effects
Key terms
- HyperFrames
- A free, open source tool from HeyGen that turns an HTML page with animation into an MP4 video. It is built to be driven by coding agents like Claude Code.
- Claude Code
- Claude in your terminal. It writes files and runs commands on your machine, and you approve each step.
- Plugin
- An add on you install in Claude Code that gives it ready skills and commands for one kind of job, here video.
- Render
- The moment the page and its motion become a finished video file you can post.
The steps
Step 1
Get your machine ready
You need Claude Code running on your machine and Node.js 22 or newer, which HyperFrames requires.
Create a new project folder, for example ad, and start Claude Code inside it. Every file of the ad lives here.
The official list of what you need first: Claude Code, Node.js 22 and FFmpegSource: hyperframes.heygen.com Tip: Run node -v in the terminal. If it is below 22, update Node.js first.
Step 2
Install HyperFrames with two commands
In the terminal, run these two commands in order. The first adds the plugin source, the second installs it.
Then reopen Claude Code. Call the skill with /hyperframes:hyperframes or simply ask for the video.
The official install: the two terminal commands, then a new Claude Code sessionSource: hyperframes.heygen.com claude plugin marketplace add heygen-com/hyperframes claude plugin install hyperframes@hyperframesPromptInstall commandsTip: Run /plugin and turn on auto update for the hyperframes marketplace to stay on the latest version.
Step 3
Describe the ad in plain words
Start with a clear brief: the business, the length, and what happens in each scene. A vague brief gives a generic ad. A precise brief gives an ad that looks like you.
Write the brief in English for cleaner code, and keep the on screen text in your audience's language.
Using /hyperframes, make a [20]-second vertical 9:16 ad for [my café in Abu Dhabi]. Scene 1 (0 to 3s): the title "[business name]" drops in from the top. Scene 2 (3 to 8s): [a coffee cup] spins slowly in the centre. Scene 3 (8 to 14s): the price counts up from 0 to [12 AED]. Scene 4 (14 to 20s): the logo and "[closing line]" with my handle [@handle].PromptAd briefStep 4
Give it your identity: colours, font and timing
This is the difference between an ad like everyone else's and one that looks like you. Give it your brand colours as hex codes, the font name and file, and the path to your logo.
Set each scene in seconds instead of words like fast or slow.
Use my brand: primary [#0E5A57], accent [#F2A93B], background [#F2EDE1]. Font for all text: [font name], file at [./fonts/myfont.ttf]. Logo file: [./logo.png], always top left, never stretched. Keep each scene exactly as timed above, and make every motion ease in and out.PromptIdentity briefTip: Keep the font and logo files inside the project folder so Claude Code can reach them.
Step 5
Preview before you render
Ask it to preview and check for problems before the final file. The skill itself works in a loop: plan, write the HTML, wire the motion, lint, preview, then render.
Look at the stills it shows you and make sure every line of text is readable and inside the frame.
The official page: open the preview with npx hyperframes preview, then render the MP4Source: hyperframes.heygen.com Before rendering, lint the composition, show me stills at [0s, 5s, 10s, 18s], and tell me if any text is cut off or too small to read on a phone.PromptPreview promptStep 6
Render the MP4
When you are happy with the preview, ask for the render. The file lands in your project folder, ready to post.
For Instagram or TikTok, keep it 9:16.
Render the final video as a 1080x1920 MP4 and tell me the file path.PromptRender promptStep 7
Edit with a sentence, not an editor
Type any change in plain words. It edits the code and renders again. No timeline, no layers.
Make one change at a time so you can see what moved.
Make the logo [50%] bigger, move the price scene [1 second] earlier, then render again with the same file name plus "-v2".PromptEdit prompt
Ready prompts to copy
The takeaway
The ad is code now: a precise brief, a clear identity and every scene timed in seconds, and Claude Code does the rest.
Liked this guide?
Join Mohammad's community
72 guides like this one, and a new one every week. One subscription opens them all.
Approximate price in your currency. You pay in AED
- A permanent archive. Open any guide, any time
- 20% off private build sessions
- Cancel any time, no commitment
Or without a subscription
Most value
Start building with me now
We sit together, break down your problem, and I build the AI solution with you step by step
- A private session with you
- Real building during the session
- Results you take with you when we finish
100% free
A free consultation about your problem


