A Lottie to APL converter library
npm install apl-translator-lottieThis tool is used to convert Lottie animation to APL (Alexa Presentation Language) document. It supports Lottie files that were created in Adobe After Effects with the Bodymovin plugin.
Currently, the converter won't be able to support all After Effects features. Make sure your animation doesn't use unsupported features. For details, see supported features.
Changes are tracked in CHANGELOG.md.
The fastest way to use apl-translator-lottie is to install it from npm.
```
npm install apl-translator-lottie --save
* To convert with a filepath
`typescript
import {convertFile} from "apl-translator-lottie"
const aplDocument = convertFile('lottie_sample.json')
`
* To convert with a JSON object
`typescript
import {convert} from "apl-translator-lottie"
let lottieJSON = {
"v":"5.7.5"
}
const aplDocument = convert(lottieJSON)
`
* To run local convert test
1. Paste your Lottie file to test/local/lottie.jsonnpm run build && npm run convert
2. Run test/local/apl.json
3. Converted APL will be written in file
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 license, except Lottie samples and APL Templates are licensed under the Amazon Software License. For more detail, please see the LICENSE file under /samples` folder.