PortalGL

Put Three.js content into your HTML layout and keep it aligned as the page scrolls.

Start here

Give an HTML element a scene, a 3D object, or an image plane. PortalGL handles positioning and resizing; you keep your renderer and animation loop.

  • Your first view

    Render a rotating cube inside a card, with a complete setup and cleanup example.

Recipes

More control