We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a399605 + 1cb2f26 commit bf175f7Copy full SHA for bf175f7
example/src/App.vue
@@ -12,6 +12,8 @@
12
:player-size="options.playerSize"
13
:player-controls="true"
14
:showColorPicker="true"
15
+ :loop="true"
16
+ :autoplay="true"
17
style="width: 100%; height:400px"></lottie-vue-player>
18
</div>
19
</template>
src/Player.vue
@@ -40,11 +40,11 @@
40
props: {
41
autoplay: {
42
type: Boolean,
43
- default: true
+ default: false
44
},
45
loop: {
46
47
48
49
showColorPicker: {
50
@@ -121,6 +121,7 @@
121
}.bind(this));
122
this.options.backgroundColor = this.backgroundColor;
123
this.options.speed = this.speed;
124
+ this.options.loop = this.loop;
125
126
methods: {
127
togglePlayPause() {
0 commit comments