ngx-lottie
v21.2.0
Published
<h1 align="center"> <img src="https://raw.githubusercontent.com/ngx-lottie/ngx-lottie/master/docs/assets/lottie.gif"> </h1>
Maintainers
Keywords
Readme
Packages
This monorepo contains two packages for rendering Lottie animations in Angular:
📦 ngx-lottie
The main package for rendering JSON-based Lottie animations using lottie-web.
npm i lottie-web ngx-lottieFeatures:
- Multiple renderer support (SVG, Canvas, HTML)
- Advanced caching
- Server-side rendering support
- Tree-shakable architecture
🚀 ngx-lottie/dotlottie
Secondary package for rendering .lottie files using @lottiefiles/dotlottie-web with WebAssembly and Web Worker support.
npm i @lottiefiles/dotlottie-web ngx-lottieFeatures:
- WebAssembly-powered rendering
- Web Worker support for better performance
- State machine support
- Smaller file sizes with
.lottieformat
Compatibility with Angular Versions
Which Package Should I Use?
| Use ngx-lottie when... | Use ngx-lottie/dotlottie when... |
| -------------------------------------- | ---------------------------------- |
| You have JSON animation files | You have .lottie files |
| You need maximum compatibility | You want smaller file sizes |
| You use advanced lottie-web features | You need Web Worker rendering |
| You need HTML renderer support | You need state machine support |
License
MIT © Artur Androsovych
