hairyf / vue3-pixi

Lightweight and flexible Vue 3 library for creating PixiJS applications.
https://vue3-pixi.vercel.app/
MIT License
215 stars 23 forks source link

Does it support gif image? #106

Closed xeoshow closed 4 months ago

xeoshow commented 6 months ago

Hello,

Nice to see your project, and found below demo which supports video, does it support gif image as well? Something like below. Thanks!

<sprite
    v-if="play"
    texture="https://pixijs.com/assets/funny.gif"
    :width="screen.width"
    :height="screen.height"
  />

video demo:

https://vue3-pixi.vercel.app/examples/sprite/video.html

<sprite
    v-if="play"
    texture="https://pixijs.com/assets/video.mp4"
    :width="screen.width"
    :height="screen.height"
  />
hairyf commented 4 months ago

<Assets /> or <sprite /> can be directly supported by importing @ pixi/gif

xeoshow commented 4 months ago

Could you please kindly show a running demo for this? would be great! Just spent much time and still not get it working right ... Thank you v much !