1.0.2 • Published 2 years ago
@jtstrader/motion-canvas-components v1.0.2
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.tsto 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.tsto 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 |