Skip to content
03 / Codex + animation

Your idea.
A real video file.

Codex can help you write and revise an animation project on your computer. You direct the result, inspect it and render an MP4 with local tools.

A frame from the downloadable TypeScript starter. All ten previews are rendered from its source.
A frame from the downloadable TypeScript starter. All ten previews are rendered from its source.

From brief to MP4

01 / Direct

Describe the result

Name the audience, message, style, duration, aspect ratio and assets. Define the final frame before asking for decorative motion.

02 / Review

Preview and revise

Ask Codex to make the scene, run the checks and render a preview. Inspect key frames and playback. Change timing, hierarchy or camera one at a time.

03 / Export

Keep the source

Render the MP4 locally. Keep the TypeScript, assets and locked dependencies so you can update the video without starting again.

The starter uses Remotion, a React-based video renderer. Its positions depend on the frame number, so scrubbing the timeline and exporting use the same animation logic. Official Codex app documentation.

Choose a style for the message

Motion graphics
Remotion + SVG

Motion graphics

Use it for: Show a process, brand message or abstract relationship with moving shapes.

Notice: Spacing, easing and visual hierarchy do most of the work.

Watch for: Moving shapes need a clear idea to explain. More motion does not mean more clarity.

Download preview MP4

A concrete Codex brief

Open the downloaded project in Codex, then paste this brief. It specifies a result and how to verify it.

Read README.md and src/Scenes.tsx in this project. Make five simple shapes settle into one orderly row. Use gentle easing and a blue, cream and gold palette. End on a held, readable arrangement.
Use idiomatic typed TypeScript, React and Remotion. Keep the scene four seconds at 30 fps, 1280 by 720. Derive animation from useCurrentFrame so seeking and export agree. Keep essential content inside a 52 px safe area. Run npm run typecheck and render the composition. Inspect frames at 0, 1, 2 and 3 seconds. Tell me the final MP4 path and any remaining defects. Make no paid API calls.
StyleToolsBest fit
Motion graphicsRemotion + SVGShow a process, brand message or abstract relationship with moving shapes.
Kinetic typographyRemotion + ReactEmphasise a hook, quotation, instruction or short voiceover.
Animated dataRemotion + SVGExplain change, comparisons and an emerging pattern.
SVG explainerRemotion + SVGWalk through flows, architecture, decision trees or a concept map.
Whiteboard drawingSVG stroke animationExplain a simple idea as if sketching it for a class.
Character cutoutRemotion + PNG layersReuse a presenter, mascot or product in social clips and narrated explainers.
2.5D parallaxSVG or layered imagesGive a scene depth with a foreground, middle ground and background.
Pixel artSVG grid or sprite sheetMake retro game scenes, tiny characters and deliberately low-resolution motion.
Stop-motion lookRemotion, stepped timingCreate a tactile paper or clay-inspired rhythm with held poses.
3D animationThree.js + RemotionShow real depth, camera movement, products and spatial relationships.

A complete project you can run

Install Node 22 or newer. Unzip the starter, open a terminal in its folder, and run these commands:

npm ci
npm run typecheck
npm run dev
npm run render

The dev command opens a local preview. The render command exports all ten four-second compositions as MP4s and poster images into output/. The first render downloads Remotion’s browser if required. Dependencies and the presenter image are bundled or pinned; generation API keys are unnecessary.

Begin with kinetic typography, SVG explainer or character cutout. The same source also includes parallax, pixel art, simulated stop motion and a real Three.js scene.

Make one idea clear in four seconds

  1. Choose one message and one style. Write a brief with audience, assets and timing.
  2. Ask Codex to edit the matching composition in the starter.
  3. Check the first, middle and final frames. Look for cropped text, unclear order and unreadable motion.
  4. Revise one thing, render again and explain why it is clearer.
  5. Export the source and MP4 together. Add your own authorised narration after the timing works.

Success: another student can run your project, reproduce the video and identify the idea it communicates.

Build a reusable character reference →