Installation
Explains how to install the Lottie-Vue component.
Using Javascript or TypeScript
Ensure that you have npm or yarn installed before installing this component.
Install package using npm or yarn.
Import the
vue-lottie-player
package in your code.
Add the player as a plugin to Vue:
Using Nuxt
Install package using npm or yarn.
Create a folder called plugins at the root of your project.
Create a file named lottie-vue-player.client.js inside the plugins directory.
Add the following code to the lottie-vue-player.client.js file.
Add the following line to the nuxt.config.js file:
Quick Start Development
To rapidly build and view the Vue interface:
Clone the Lottie-Vue GitHub Repository.
Run
yarn install
Watch the demo of the player.
Last updated