pixijs-scene-gif

Load and control GIF animations as GifSprite objects in PixiJS v8 scenes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pixi.js/gif, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the display and playback of animated GIFs within PixiJS v8 scenes, simplifying the integration of animated images in web-based graphics projects.

Core Features & Use Cases

  • GIF Playback: Play, stop, and control animated GIFs as display objects in PixiJS.
  • Asset Loading: Load GIF files as GifSource objects that can be shared across multiple instances.
  • Advanced Controls: Adjust playback speed, handle frame updates, and register callbacks for events like completing, looping, or frame changes.
  • Use Case: Incorporate animated GIFs into a game scene or interactive presentation by loading a GIF, wrapping it in GifSprite, and managing playback with simple commands.

Quick Start

Import the GIF extension, load a GIF asset, create a GifSprite with desired options, and add it to the scene for animated display.

Frequently Asked Questions about pixijs-scene-gif

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

FAQPage Schema
How do I play animated GIFs in a PixiJS scene?

To play animated GIFs in a PixiJS scene, load the GIF file as a GifSource object using the pixi.js/gif loader extension, wrap it in a GifSprite, and add the sprite to your stage for immediate playback control.

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

Yes, you can share a single GIF asset across multiple sprites in PixiJS by loading the file once into a GifSource object, then passing that shared source to multiple GifSprite instances to optimize memory and rendering.

What's the best way to control GIF playback speed and frame updates in PixiJS?

The best way to control GIF playback speed and frame updates in PixiJS is using the advanced controls provided by GifSprite, which allow you to adjust playback speed, handle frame updates, and register callbacks for frame changes.

How do I handle looping and completion events for GIF animations in PixiJS?

To handle looping and completion events for GIF animations in PixiJS, register event callbacks directly on the GifSprite instance to trigger custom logic when the animation completes a loop or reaches the final frame.

Does PixiJS v8 require a specific extension to load and display GIF files?

Yes, PixiJS v8 requires the pixi.js/gif extension to load and display GIF files, which must be registered as a loader extension to properly parse the animated frames into a manageable GifSource object.