Description
lottie-web-vue is a Vue 3 component for playing Lottie animations. Lottie animations are created in After Effects and exported with Bodymovin, and this package wraps Airbnb's lottie-web library in a single component. You pass the Lottie JSON as a prop and control playback through a template ref with methods such as play, pause, stop and goToAndPlay. The package ships TypeScript declarations and works with script setup, the Options API and global registration through app.use. It is designed to stay small: lottie-web is a peer dependency, so your bundler shares a single copy instead of including another one, and the package is about 21 kB unpacked. It is SSR-safe, because lottie-web is only initialized in the onMounted hook, so server rendering and static site generation work without changes. The site shows a short example that loads an animation with auto-play and looping. Install it with npm, yarn or pnpm. The package is released under the MIT License, and a changelog is linked from the repository.…
Highlights
- One Vue 3 component for Lottie animations
- Playback control through a template ref
- TypeScript declarations and script setup support
- SSR-safe, initialized on mount
- About 21 kB, with lottie-web as a peer dependency
Ratings & Reviews
No ratings yet
Be the first to rate lottie-web-vue.
People also visit

ngx-lottie
Fully customizable Angular component for rendering After Effects animations
lottie-web-vue FAQ
What does lottie-web-vue do?
It plays Lottie animations exported from After Effects inside a Vue 3 app, through one component.
How do I control playback?
Through a template ref, with methods such as play, pause, stop and goToAndPlay.
Does it work with server-side rendering?
Yes. The site says it initializes lottie-web only on mount, so SSR and static generation work.
How do I install it?
Run npm install lottie-web-vue, or use yarn or pnpm.
What license is it under?
MIT, according to the site.
What are the best lottie-web-vue alternatives?
Popular alternatives to lottie-web-vue include vue-lottie, vue3-lottie and ngx-lottie. See all lottie-web-vue alternatives














