What problem does it solve?
This Skill solves the problem of displaying animated GIFs in PixiJS correctly, including proper loading and frame-accurate playback without treating GIFs like normal textures.
Core Features & Use Cases
- Animated GIF rendering via GifSprite: Play, stop, and control animation state while reading frame timing like currentFrame and totalFrames.
- Correct asset loading with GifSource: Use the required pixi.js/gif side-effect import so Assets.load returns a GifSource that GifSprite can consume.
- Playback control and lifecycle callbacks: Use autoPlay/loop plus onComplete, onLoop, and onFrameChange to drive UI or game logic, including manual update mode with a custom ticker.
- Use case: Use it to render a looping animated reaction GIF on a profile card while reacting to frame changes to sync UI overlays or sound effects.
Quick Start
Ask the Skill to show how to load an animation.gif using the PixiJS GIF loader side effect and then create a GifSprite with autoPlay and loop enabled, centered on the stage.