@jtstrader/motion-canvas-components
v1.0.2
Published
A Motion Canvas components library.
Downloads
9
Readme
Motion Canvas Components
Using this library
- Clone this repo.
- Run
npm install <path to this repo>
in your motion canvas project - Set your
vite.config.ts
to look like this:
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'),
},
},
});
From npm
- Run
npm install <library name here>
- Set your
vite.config.ts
to look like this:
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'),
},
},
});
Components
| Name | Description | | ---- | ----------------------------------------------------------------------------------- | | Gear | A spur gear with configurable size, teeth, struts, and a single concentric center |