chenqingspring / vue-lottie

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

vue-lottie (seemingly) not currently setup for use with canvas elements. #26

Open Jamesbillard12 opened 5 years ago

Jamesbillard12 commented 5 years ago

On review of the current source code located at vue-lottie/src/lottie.vue, it seems that 'svg' has been hard coded in as the renderer for the animation instance. When I modified the source to accept user input I am noticing that if I select to use the 'canvas' option, on reload all of my animations disappear in chrome and firefox, but stay when using Edge. The 'svg' option is working in all the browsers I've tested. Is there something extra I need to be doing to keep this from happening with canvas elements?

https://github.com/chenqingspring/vue-lottie/blob/master/src/lottie.vue

xing00 commented 5 years ago

same problem...

Doyouhavefreestyle commented 3 years ago

so am i, i am finding a way to solve it, bro