pixijs / layout

Library for arranging/resizing pixiJS rendered elements basing on css like configs
https://pixijs.io/layout/
MIT License
75 stars 5 forks source link

Support gif image and mp4 video? #75

Open xeoshow opened 9 months ago

xeoshow commented 9 months ago

As below code shows, could it support bunny.gif and something like guide.mp4 video? Thanks a lot.

import { Layout } from "@pixi/layout";

new Layout({
    content: {
        content: Sprite.from("bunny.**gif**"),
        styles: {
            position: "center",
            maxWidth: "100%",
            minHeight: "100%",
        },
    },
    styles: {
        background: "red",
        position: "center",
        width: `100%`,
        height: `100%`,
    },
});
### Tasks