Gathering detailed insights and metrics for vue-lottie-web
Gathering detailed insights and metrics for vue-lottie-web
Gathering detailed insights and metrics for vue-lottie-web
Gathering detailed insights and metrics for vue-lottie-web
npm install vue-lottie-web
Typescript
Module System
Node Version
NPM Version
Vue (59.59%)
JavaScript (35.08%)
HTML (5.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
9 Stars
4 Commits
3 Forks
1 Branches
1 Contributors
Updated on Aug 24, 2022
Latest Version
0.0.3
Package Id
vue-lottie-web@0.0.3
Unpacked Size
1.88 MB
Size
391.50 kB
File Count
13
NPM Version
5.6.0
Node Version
8.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
a vue component for lottie-web
show Demo in local:
git clone git@github.com:niyingfeng/vue-lottie-web.git
npm install
npm run dev
Install through npm:
npm install --save vue-lottie-web
1# use component 2<template> 3 <div id="app"> 4 <p class="pBtn"> 5 <span @click="lottiePlay">开始</span> 6 <span @click="lottieRePlay">再一次</span> 7 <span @click="lottiePause">暂停</span> 8 <span @click="lottieStop">停止</span> 9 </p> 10 <Lottie 11 className="animation" 12 renderer="canvas" 13 :loop="false" 14 :autoplay="false" 15 :animationData=lottieData 16 17 @getLottieInstance=getLottieInstance 18 @onEnterFrame=onEnterFrame 19 @onComplete=onComplete 20 @onLoopComplete=onLoopComplete 21 /> 22 </div> 23</template> 24 25<script> 26import Lottie from 'vue-lottie-web'; 27import lottieData from './data.json'; 28 29export default { 30 components: { 31 Lottie 32 }, 33 data() { 34 return { 35 lottieData, 36 lottieInstance: '' 37 }; 38 }, 39 40 methods: { 41 getLottieInstance(lottieInstance) { 42 this.lottieInstance = lottieInstance; 43 44 console.log(lottieInstance) 45 }, 46 lottiePlay() { 47 this.lottieInstance && this.lottieInstance.play(); 48 }, 49 lottieRePlay() { 50 this.lottieInstance && this.lottieInstance.stop(); 51 setTimeout(() => { 52 this.lottieInstance.play(); 53 }); 54 }, 55 lottiePause() { 56 this.lottieInstance && this.lottieInstance.pause(); 57 }, 58 lottieStop() { 59 this.lottieInstance && this.lottieInstance.stop(); 60 }, 61 onComplete(e) { 62 console.log('onComplete', e); 63 }, 64 onLoopComplete(e) { 65 console.log('onLoopComplete', e); 66 }, 67 onEnterFrame(e) { 68 // console.log('onEnterFrame', e); 69 } 70 } 71}; 72</script> 73 74
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
103 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More