# PortalGL

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



## Start here [#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](./getting-started.md)

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

## Recipes [#recipes]

* [Views and 3D objects](./dom-track.md)

  Add more views, align objects with DOM elements, animate, and clip content.

* [Image planes](./projected-quad.md)

  Make a textured plane follow an HTML rectangle.

* [Post-processing](./dom-pipelines.md)

  Add bloom or another TSL effect to a view or shared scene.

## More control [#more-control]

* [Tracking and custom rendering](./dom-primitives.md)

  Read DOM bounds without Three.js, or integrate with your own WebGL render loop.

* [API reference](./reference.md)

  Look up methods, defaults, supported layouts, and common fixes.
