adlibrary.com Logoadlibrary.com
Share
Tutorial

Claude Code + Remotion: How to Make Videos From Prompts

Claude Code plus Remotion lets you describe a video in plain English and render an MP4. You install the Remotion skill, create a project, prompt one scene at a time and export. This guide is for marketers making product and ad videos, no coding required.

Auto-extracted hero image

What you need before you start

The Claude Code Remotion workflow has three parts. Claude Code is an AI assistant that writes and runs code from plain-language instructions. Remotion is a framework that builds videos from web code (React). The Remotion skill is a package of context that teaches Claude Code how Remotion works, so your prompts turn into working animation code.

You need:

  • Node.js, because every command below runs through npx.
  • Claude Code installed and signed in with your own account.
  • A terminal, either the one built into an editor such as VS Code or Cursor, or any system terminal.

For Claude Code Remotion setup, the reference is Remotion's own page, Remotion and Claude Code. This guide adds what marketers need on top: how to prompt for product and ad videos and how to keep scenes under control.

Step 1: Create the Remotion project

Create a Blank project with the command from Remotion's Claude Code docs:

bash
npx create-video --yes --blank my-video

This creates a Blank project in the my-video directory. There is no template prompt to answer. Open the folder in your editor and start the Remotion Studio, where you preview animations in real time (Remotion's docs show how). The Studio opens in your browser, typically at localhost:3001.

Step 2: Install the Remotion skill

From inside the project folder, run:

bash
npx skills add remotion-dev/skills

This installs a skill that gives Claude Code the context and syntax for Remotion, like a specialized cheat sheet. After that, start Claude Code in the same folder and ask it for your first scene.

If you find configuration files for several AI tools in the project (for example for Cursor or Gemini), keep only the ones for the agent you use. Conflicting instructions in the folder can confuse the output. Check what the generated project actually contains before you delete anything.

Step 3: Let Claude Code suggest scenes from your product

Before you write a script, ask Claude Code which parts of your product make good clips. This grounds the video in assets you already have.

From local code. If you have your website or app source on disk, point Claude at it:

text
Look at /src/pages/index.tsx. What components would work as animated videos?

From a live site. Otherwise ask it to read the public page:

text
Go to myproduct.com. What sections would make good promos?

The answer is a shortlist: a pricing toggle, a dashboard card, a feature list. Pick one. A 10-second clip of one idea beats a 60-second tour of everything, which matters for video ads, where each scene has seconds to earn attention. If you are planning paid creative, how to create video ads covers formats and hooks before you open Remotion.

Step 4: Build the animation with one prompt at a time

The reliable method is an iterative conversation. Give one instruction, review the preview in the Studio, then give the next. Here is a nine-prompt sequence that builds a terminal animation, the kind of scene that suits a developer tool or SaaS product demo:

  1. Start with a basic object: "Create a macOS terminal window, 1280x1000px, with a light theme and a blinking cursor."
  2. Refine the look: "Remove the background and make the font bigger. Add a margin but keep the background transparent."
  3. Add typing: "Create a typewriter animation that types 'npx skills add remotion-dev/skills'. The cursor should blink when idle."
  4. Add 3D: "Apply a 3D rotation of 10 degrees on the X and Y axes."
  5. Add continuous movement: "Animate the Y-axis rotation from 10 to -10 degrees over the entire video length."
  6. Add an entrance: "Make the terminal slide in from the bottom using a spring animation with no bounce."
  7. Run a live command: "Run the command 'npx skills add remotion-dev/skills' and add the actual terminal output to the animation. Stagger the appearance of each line of the output by 50ms."
  8. Add an exit: "When the animation is done, flip the terminal toward the camera by rotating it on the X-axis. Set the transform origin to the bottom edge."
  9. Add branding: "Create a new composition showing the Remotion logo, a plus sign, and the Claude Code logo."

Swap the terminal for your own subject. For a product video that means a UI card instead of a terminal, a number counting up instead of typed text, and your logo in the last composition. Keep the structure: one object, one change per prompt.

Step 5: Render the MP4

When the Studio preview looks right, render it. Replace MyComposition with the composition name shown in the Studio sidebar:

bash
npx remotion render MyComposition --output promo.mp4

This writes promo.mp4 to your project folder. It is a standard video file you can upload to social platforms, embed on a website or landing page, or use in ad campaigns.

Tips for product and ad videos

A few habits keep the Claude Code Remotion loop fast:

  • Name the scene. Say "the pricing card" or "the onboarding checklist" instead of "the thing on the left". Claude Code edits the right component faster.
  • Fix timing last. Get layout and movement right first, then ask for durations, delays and staggers.
  • Keep one composition per idea. A separate composition for the hook, the demo and the end card is easier to reorder than one long timeline.
  • Show the real product. Screenshots of your own interface, transitioning between states, read as more credible than abstract shapes.
  • Write the hook first. The opening three seconds decide whether anyone watches the rest, so animate that scene before the others.

Where the AI approach works and where it falters

It works best for structured, predictable content. That includes terminal windows typing commands, screenshots transitioning between states, text appearing character by character, and numbers counting up. Anything with clean edges and defined movement is a strong candidate.

It falters on organic motion. Character movement and fluid shapes need frame-by-frame artistic control that this method does not give you. Also avoid stacking changes in a single prompt. Asking for five things at once leads to misplaced or wrong elements. One instruction, one review, then the next.

From finished clip to ad creative

A rendered clip is only half the job. Whether it earns attention depends on the hook and the angle, and those come from what already works in your market. Before you animate, look at which video formats competitors have kept running. AdLibrary's ad search shows live creative across platforms, and ad timeline analysis shows how long each video has been in market, a stronger signal than how it looks.

For more on this stack, see build viral animated videos with Claude Code and Remotion, Claude Code for marketers: an introduction, Claude Code prompts for marketing and Claude Code for ad creative analysis. If you also work with AI video tools, AI video generation tools for marketers compares the options, and AI video ads for SaaS companies shows where animated product clips fit.

Describe the scene, check the preview, and tighten one thing at a time.

Research the video ads your competitors run before you build yours: Get started or see pricing.

Frequently Asked Questions

Do I need to know how to code to create videos this way?

No. The process relies on natural-language prompts that make the AI write the code for you. Basic familiarity with a command line is helpful but not essential.

What is Remotion and why use it with Claude Code?

Remotion is a framework that creates videos with web technologies like React. It gives animations a structured, code-based form, which an AI like Claude Code can generate and change from your instructions.

How do I install the Remotion skill for Claude Code?

Run npx skills add remotion-dev/skills inside your project folder. The skill gives Claude Code the context and syntax for Remotion. Create the project first with npx create-video --yes --blank my-video, as described in Remotion's Claude Code docs.

Can Claude Code create any animation I describe?

No. It works best for structured animation with clean lines and predictable movement, such as UI elements, text effects and simple 3D transforms. It struggles with organic or character-based animation that needs artistic finesse.

How long does a simple animated video take?

A basic animation following these steps can take as little as 15-30 minutes. Each prompt takes a few minutes to process, so more complex videos take longer.

What can I do with the final MP4 file?

It is a standard video format. Upload it to any platform that supports video, including X (Twitter), LinkedIn and Instagram, or embed it on your website and landing pages.

Key Terms

Claude Code
An AI-powered coding assistant that can interpret natural language prompts to write, edit, and execute code within an integrated development environment (IDE).
Remotion
A framework based on the React library for creating videos and motion graphics programmatically. It allows developers to define animations using code and preview them in a browser.
IDE (Integrated Development Environment)
A software application that provides comprehensive tools for software development, typically including a source code editor, build automation tools, and a debugger. VS Code and Cursor are examples.
npx
A command-line tool that comes with Node Package Manager (npm). It is used to execute Node.js packages from the command line without having to install them globally.
Composition
In Remotion, a Composition is the main component that represents a complete video or a distinct scene within a larger video project. Each composition has its own dimensions, duration, and frame rate.
Spring Animation
A type of physics-based animation that simulates the movement of a spring. It is often used to create natural-looking motion with effects like bouncing and overshooting.

Ready to get started?

Try AdLibrary Free