Skip to content

Reducing the size of the a-frame canvas to show other HTML elements

If this is possible, can I change the size of the aframe canvas in code?

I would like to display a form so that users can modify object parameters in the aframe scene.


See this question. How to remove fullscreen styles in A-Frame, reduce canvas size, or scroll a page with A-Frame scene?

You can use the embedded component to remove fullscreen styles and make it embeddable within a web page.

<a-scene embedded> 
  <!-- scene stuff -->

Then you are free the style <a-scene> how you wish

a-scene { display: block; width: 50%; }