chenqingspring / vue-lottie

Render After Effects animations on Vue based on Bodymovin
MIT License
1.31k stars 281 forks source link

loop number not working for me #33

Open dhruvbhatia7 opened 5 years ago

dhruvbhatia7 commented 5 years ago

loop: number is not working for me. Setting it to true or false works

<lottie :options="defaultOptions" :height="100" :width="100"v-on:animCreated="handleAnimation"/>

data() { return {

defaultOptions: { animationData: animationData.default, loop: 2, // <== not working for me autoplay: true }, animationSpeed: 1 } }

dalys commented 5 years ago

I made a PR to fix this https://github.com/chenqingspring/vue-lottie/pull/37 hopefully @chenqingspring can take a look and merge.