vue3-lottie
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "vue3-lottie", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Sanjay Soundarajan <info@sanjaysoundarajan.dev> (https://sanjaysoundarajan.dev)", |
@@ -82,2 +82,4 @@ # Vue 3 Lottie | ||
| height | Number or String | "100%" | Height of the lottie animation container (Numbers correspond to pixel values) | | ||
| speed | Number | "1" | Speed of the lottie animation | | ||
| direction | String | "forward" | Animation play direction | | ||
| loop | Number or Boolean | true | The number of instances that the lottie animation should run (true is infinite) | | ||
@@ -114,3 +116,19 @@ | autoPlay | Boolean | true | Start animation on component load | | ||
- Stops the animation. This will also reset the animation to the first frame. Look at the demo for some examples. | ||
- destroy | ||
- You can call this method to destroy the animation. It will remove the animation from the DOM. | ||
- setSpeed(speed) | ||
- You can call this method to change the speed of your animation. | ||
- setDirection(direction) | ||
- You can call this method to change the direction of your animation. | ||
- getDuration(inFrames) | ||
- You can call this method to get the duration of your animation. | ||
- goToAndStop(frameNumber, isFrames) | ||
- You can call this method to go to a specific frame of your animation. The animation will be stopped at the end of this call. | ||
- goToAndPlay(frameNumber, isFrames) | ||
- You can call this method to go to a specific frame of your animation. The animation will be played from this frame. | ||
- playSegments(segments, forceFlag) | ||
- You can call this method to play a specific segment of your animation. | ||
- setSubFrame(subFrame) | ||
- You can call this method to set the subframe value. | ||
![forthebadge](https://forthebadge.com/images/badges/made-with-vue.svg) ![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1406241
30200
133