pixijs-scene-gif

Animate GIFs in PixiJS applications using GifSprite and GifSource.

302|15|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-scene-gif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-scene-gif
Source: https://github.com/pixijs/pixijs-skills/tree/main/skills/pixijs-scene-gif
Command: npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-scene-gif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GIF playback in PixiJS can be tricky; this skill provides a ready-to-use path with GifSprite and GifSource for seamless GIF rendering in PixiJS v8.

Core Features & Use Cases

  • Play, pause, and seek GIF animations via GifSprite.
  • Share a GifSource across multiple GifSprite instances.
  • Requires side-effect import of pixi.js/gif and Assets.load for GIF data.

Quick Start

Import the pixi.js/gif extension, load a GIF via Assets.load to obtain a GifSource, and instantiate a GifSprite with that source.

Frequently Asked Questions about pixijs-scene-gif

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display animated GIFs in PixiJS v8?

To display animated GIFs in PixiJS, use the GifSprite and GifSource components. You must side-effect import pixi.js/gif, load the GIF via Assets.load, and then instantiate GifSprite with the resulting source.

Can I share a single GIF animation across multiple sprites in PixiJS?

Yes, you can share a single GIF animation across multiple sprites in PixiJS. Load the GIF data once into a GifSource using Assets.load, then pass that same GifSource instance to multiple GifSprite objects.

How do I play, pause, and seek GIF animations in a PixiJS game?

You can play, pause, and seek GIF animations in a PixiJS game by configuring the GifSprite. Use GifSpriteOptions such as autoPlay, loop, and callback functions to control playback behavior precisely.

Do I need to import pixi.js/gif to load GIF assets in PixiJS?

Yes, you need to import pixi.js/gif as a side-effect to load GIF assets in PixiJS. This extension registers the necessary loaders and components, allowing Assets.load to parse GIF files into a usable GifSource.

What is the best way to control GIF playback in a PixiJS interface?

The best way to control GIF playback in a PixiJS interface is using GifSpriteOptions. You can set autoPlay to start immediately, configure loop for repetition, and use callbacks to trigger events during the GIF animation.

Why does my GIF not animate in PixiJS after loading?

If your GIF does not animate in PixiJS, you likely missed the side-effect import of pixi.js/gif or did not load it into a GifSource via Assets.load. Ensure you pass the GifSource to your GifSprite instance.