pixijs-scene-dom-container

Overlay HTML elements onto PixiJS scenes with synchronized CSS transforms.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables overlaying and positioning HTML elements over PixiJS canvases, bridging WebGL rendering with native DOM content for enhanced interactivity.

Core Features & Use Cases

  • HTML Overlays: Attach and position HTML elements like inputs, iframes, or videos to follow PixiJS scene graph objects.
  • Scene Graph Driven CSS Transforms: Synchronize CSS transforms with PixiJS scene updates, ensuring overlays stay aligned.
  • Use Case: Create a custom UI that follows a character sprite in a game while capturing native browser input events for user interaction.

Quick Start

Use the pixijs-scene-dom-container skill to overlay a DOM input, centered over a scene object, and keep it synchronized with scene graph movements.

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 scene?

To overlay HTML elements on a PixiJS scene, you can attach native DOM content like inputs or iframes to follow scene graph objects. This bridges WebGL rendering with native DOM content for enhanced interactivity.

How do I keep CSS transforms synchronized with PixiJS scene graph movements?

CSS transforms are synchronized with PixiJS scene updates by linking HTML overlays to scene graph transformations. This ensures overlays stay perfectly aligned with WebGL objects during movement.

Can I use native HTML inputs and iframes over a PixiJS canvas for interactive UIs?

Yes, you can attach native HTML elements like inputs, iframes, or videos over a PixiJS canvas. This enables interactive UIs that capture native browser input events while following scene objects.

What is the best way to create a UI that follows a character sprite in PixiJS?

The best way to create a UI that follows a character sprite in PixiJS is by using DOM overlays. This approach allows custom UI to follow scene graph objects while capturing native browser input events.

Does this approach support CSS-driven positioning for embedded content in WebGL?

Yes, this approach supports CSS-driven positioning for embedded content in WebGL. It facilitates overlaying HTML elements onto PixiJS scenes, enabling interactive UIs and embedded content to move with scene objects.

When should I use DOM overlays instead of rendering UI inside PixiJS?

You should use DOM overlays when you require native browser input events or need to embed content like videos and iframes. This ensures synchronization between WebGL scene graph transformations and CSS transforms.