Progressively render any svg path up to any percent of it
npm install @donkeyclip/motorcortex-svgdrawTable of Contents
- MotorCortex-svgdraw
- Demo
- Intro / Features
- Getting Started
- Installation
- Importing and Loading
- Creating Incidents
- Draw
- Adding Incidents in your clip
- Contributing
- License
- Sponsored by
This Plugin exposes just one Incident:
- Draw
``bash`
$ npm install --save @donkeyclip/motorcortex-svgdrawOR
$ yarn add @donkeyclip/motorcortex-svgdraw
`javascript`
import { loadPlugin } from "@donkeyclip/motorcortex";
import SVGDDef from "@donkeyclip/motorcortex-svgdraw";
const SVGD = loadPlugin(SVGDDef);Creating Incidents
elements the Effect will draw from the current length
percentage of the path to the target, provided by the animated attribute cover `javascript
const draw = new SVGD.Draw({
animatedAttrs: {
cover: 1
}
}, {
selector: 'svg path',
duration: 2000
});
`
The Effect of the example will fully draw all selected paths in 2000 milliseconds.Adding Incidents in your clip
`javascript
clipName.addIncident(incidentName,startTime);
``In general, we follow the "fork-and-pull" Git workflow, so if you want to submit patches and additions you should follow the next steps:
1. Fork the repo on GitHub
2. Clone the project to your own machine
3. Commit changes to your own branch
4. Push your work back up to your fork
5. Submit a Pull request so that we can review your changes