3.0.1 • Published 1 year ago

@pixi/gif v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

PixiJS Animated GIF

Node.js CI

Plugin to support playback of animated GIF images in PixiJS. Unlike normal GIF playback in the browser, this plugins allows you to stop, loop, change speed, or go to a specific frame.

Usage

Load an animated GIF image with Assets:

import '@pixi/gif';
import { Assets } from 'pixi.js';

const app = new Application();
const image = await Assets.load('image.gif');
app.stage.addChild(image);

To use a gif without Assets:

import { Application } from 'pixi.js';
import { AnimatedGIF } from '@pixi/gif';

const app = new Application();
fetch('image.gif')
    .then(res => res.arrayBuffer())
    .then(AnimatedGIF.fromBuffer)
    .then(image => app.stage.addChild(image));

Version Compatiblity

PixiJSPixiJS GIF
v6.xv1.x
v7.xv2.x
v8.xv3.x
3.0.1

1 year ago

3.0.0

1 year ago

2.1.1

1 year ago

3.0.0-rc

1 year ago

2.1.0

3 years ago

2.0.1

3 years ago

1.1.3

3 years ago

2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago