pixijs-scene-dom-container

Overlay HTML elements on a PixiJS canvas and synchronize them with scene graph transforms.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DOMContainer positions an HTML element over the PixiJS canvas and drives its CSS transform from the scene graph, allowing native inputs, iframes, videos, and other HTML overlays to follow a display object.

Core Features & Use Cases

  • Overlay HTML content on top of a PixiJS scene and keep it in sync with object transforms.
  • Configure the overlay element and anchor to align DOM with canvas content; supports elements like inputs, iframes, videos, and rich UI for overlays.

Quick Start

Overlay an HTML element with a DOMContainer positioned to follow a PixiJS display object on the canvas.

Frequently Asked Questions about pixijs-scene-dom-container

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

FAQPage Schema
How do I overlay HTML elements on a PixiJS canvas?

To overlay HTML elements on a PixiJS canvas, use a DOMContainer to position native elements like inputs or iframes over the scene and drive their CSS transforms from the scene graph, keeping them synchronized with display objects.

Can I sync HTML DOM overlays with PixiJS scene graph transforms?

Yes, you can sync HTML DOM overlays with PixiJS scene graph transforms by using DOMPipe to render and align DOM content, ensuring elements like videos and rich UI track display objects accurately.

What is the best way to align native inputs and iframes over a PixiJS scene?

The best way to align native inputs and iframes over a PixiJS scene is configuring DOMContainerOptions like element and anchor, which aligns the HTML overlay content with the canvas objects.

Do I need the pixi.js DOM extension to render HTML overlays?

Yes, you need the pixi.js DOM extension and DOMPipe to render and align HTML overlays, as they provide the necessary mechanism to position DOM content over the canvas.

Why use CSS transforms for HTML overlays instead of standard PixiJS rendering?

CSS transforms allow native HTML elements like iframes and videos to retain their native functionality while following PixiJS display objects, solving the problem of embedding rich UI that canvas rendering cannot natively handle.

What types of HTML elements can I track with PixiJS display objects?

You can track native inputs, iframes, videos, and other rich HTML UI elements by overlaying them on a PixiJS canvas and synchronizing their positions with display object transforms.