Motion Canvas: a TypeScript library and editor for animations with voice-overs
Motion Canvas is a project with two parts: a TypeScript library that uses generators[1] to program animations, and an editor with a real-time preview of those animations. It is designed to create informative vector animations and synchronize them with voice-overs. Besides the preview, the editor lets you change certain aspects of an animation that would otherwise be tedious to edit.
The project is maintained as one monorepo[2] with several packages. The 2d package is the default renderer for 2D motion graphics, core runs and renders animations, and create bootstraps new projects. The player package is a custom element for displaying animations in a browser, ui is the editing interface, and vite-plugin is a plugin for Vite[3] used to develop and bundle animations.
To work on the project, clone the repo, run npm install, and then run npx lerna run build. The command npm run template:dev starts a Vite server that watches the core, 2d, ui and vite-plugin packages. A local version can be linked into a standalone project by replacing the version in its package.json with a file: path, and linking ui also requires changing vite.config.ts.
Sources
-
GitHub Trending
motion-canvas/motion-canvas


