Scripting toolkit for the CL5 animation tool
npm install -g @timkendrick/cl5-sdk
This will make the
cl5 command globally available.
cl5 compile /path/to/animation.json --output=/path/to/output.js
Preview an animation in browser:
cl5 preview /path/to/animation.json --watch
This will launch a browser with the animation injected into the viewer, and automatically recompile the animation and reload the page whenever the animation file changes
Watching additional source files:
cl5 preview /path/to/animation.json --watch=/path/to/animation/resources/*.svg
This will additionally recompile the animation and reload the page whenever the additional files are changed
Full usage instructions:
cl5 compile --help
cl5 preview --help
See the animation file reference for instructions on creating valid CL5 animation files.