AI Card Bao API.AICARDBAO.COM
Home / 开源 / Motion Canvas
AI TOOL / #12928

Motion Canvas

A programming animation library that uses code to visualize creative ideas, enabling the creation of explanatory videos and dynamic visuals through code.

Introduction

Motion Canvas is two things:

  • A TypeScript library that uses generators to program animations.
  • An editor providing a real-time preview of said animations.

It's a specialized tool designed to create informative vector animations and synchronize them with voice-overs.

Aside from providing the preview, the editor allows you to edit certain aspects of the animation which could otherwise be tedious.

Using Motion Canvas

Check out our [getting started][docs] guide to learn how to use Motion Canvas.

Developing Motion Canvas locally

The project is maintained as one monorepo containing the following packages:

NameDescription
2dThe default renderer for 2D motion graphics
coreAll logic related to running and rendering animations.
createA package for bootstrapping new projects.
docs[Our documentation website.][docs]
e2eEnd-to-end tests.
examplesAnimation examples used in documentation.
internalInternal helpers used for building the packages.
playerA custom element for displaying animations in a browser.
templateA template project included for developer's convenience.
uiThe user interface used for editing.
vite-pluginA plugin for Vite used for developing and bundling animations.

After cloning the repo, run npm install in the root of the project to install all necessary dependencies. Then run npx lerna run build to build all the packages.

Developing Editor

When developing the editor, run the following command:

npm run template:dev

It will start a vite server that watches the core, 2d, ui, and vite-plugin packages. The template package itself contains a simple Motion Canvas project that can be used during development.

Developing Player

To develop the player, first build the template: npm run template:build. Then, start npm run player:dev.

Installing a local version of Motion Canvas in a project

It can be useful to install a local version of Motion Canvas in a standalone project. For example, when you want to use your own fork with some custom-made features to create your animations.

Let's assume the following project structure:

projects/
├── motion-canvas/
Visits:7 Updated:2026-12-03 AI tools

Related