File tree Expand file tree Collapse file tree 4 files changed +192
-225
lines changed Expand file tree Collapse file tree 4 files changed +192
-225
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <div style =" display : flex ; justify-content : center ; align-content : center " >
4
- </div >
3
+ <div
4
+ style =" display : flex ; justify-content : center ; align-content : center "
5
+ ></div >
5
6
<div style =" display : flex ; justify-content : center ; align-content : center " >
6
7
<h1 >Welcome to LottieVue example</h1 >
7
8
</div >
8
9
<br />
9
10
<lottie-vue-player
10
11
id =" player-one"
11
- :src =" `https://assets10 .lottiefiles.com/packages/lf20_tzjfwgud .json`"
12
+ :src =" `https://assets9 .lottiefiles.com/private_files/lf30_w3ku1h1i .json`"
12
13
:theme =" options.theme"
13
14
:player-size =" options.playerSize"
14
15
:player-controls =" true"
15
16
:showColorPicker =" true"
16
17
:loop =" true"
18
+ :speed =" 3"
17
19
:autoplay =" true"
20
+ mode =" normal"
21
+ :background-color =" options.backgroundColor"
18
22
style =" width : 100% ; height : 400px "
19
23
></lottie-vue-player >
20
24
</div >
@@ -28,7 +32,7 @@ export default {
28
32
options: {
29
33
minimizable: false ,
30
34
playerSize: " standard" ,
31
- backgroundColor: " #fff " ,
35
+ backgroundColor: " #9dff97 " ,
32
36
backgroundStyle: " color" ,
33
37
theme: {
34
38
controlsView: " standard" ,
Original file line number Diff line number Diff line change 4
4
"description" : " Lottie player wrapper for Vue.js by LottieFiles" ,
5
5
"scripts" : {
6
6
"build" : " vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html" ,
7
+ "build:dev" : " vue-cli-service build --watch --inline-vue --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html" ,
7
8
"build-with-coverage" : " CODE_COVERAGE=true vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html" ,
8
9
"release" : " semantic-release" ,
9
10
"run-tests" : " yarn run build-with-coverage && yarn run start-cypress" ,
22
23
" dist"
23
24
],
24
25
"dependencies" : {
25
- "@lottiefiles/lottie-player" : " ^1.0.4 " ,
26
+ "@lottiefiles/lottie-player" : " ^1.5.7 " ,
26
27
"vue" : " ^2.6.12"
27
28
},
28
29
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments