exdeejay / motion-canvas-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

motion-canvas-components

A component library for Motion Canvas. Feel free to fork and/or PR!

Installation

git clone https://github.com/exdeejay/motion-canvas-components.git
cd motion-canvas-components
npm link

In your project, run:

npm link motion-canvas-components

Then, modify your project's vite.config.ts file:

export default defineConfig({
  plugins: [motionCanvas()],
  resolve: {
    alias: {
      '@motion-canvas/core': path.resolve('./node_modules/@motion-canvas/core'),
      '@motion-canvas/2d': path.resolve('./node_modules/@motion-canvas/2d'),
    }
  }
});

About


Languages

Language:TypeScript 100.0%