Constructs a new CSS3D renderer.
Optionalparameters: {}The parameters.
The DOM where the renderer appends its child-elements.
Returns an object containing the width and height of the renderer.
The size of the renderer.
Renders the given scene using the given camera.
A scene or any other type of 3D object.
The camera.
Resizes the renderer to the given width and height.
The width of the renderer.
The height of the renderer.
This renderer can be used to apply hierarchical 3D transformations to DOM elements via the CSS3 [transform]https://www.w3schools.com/cssref/css3_pr_transform.asp property.
CSS3DRendereris particularly interesting if you want to apply 3D effects to a website without canvas based rendering. It can also be used in order to combine DOM elements with WebGLcontent.There are, however, some important limitations:
So
CSS3DRendereris just focused on ordinary DOM elements. These elements are wrapped into special 3D objects (CSS3DObject or CSS3DSprite) and then added to the scene graph.@three_import import { CSS3DRenderer } from 'three/addons/renderers/CSS3DRenderer.js';