[name]

[name] can be used to apply hierarchical 3D transformations to DOM elements via the CSS3 [link:https://www.w3schools.com/cssref/css3_pr_transform.asp transform] property. This renderer is particular 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 WebGL content.

There are, however, some important limitations:

So [name] is just focused on ordinary DOM elements. These elements are wrapped into special objects (*CSS3DObject* or *CSS3DSprite*) and then added to the scene graph.

Examples

[example:css3d_molecules molecules]
[example:css3d_orthographic orthographic camera]
[example:css3d_panorama panorama]
[example:css3d_periodictable periodictable]
[example:css3d_sprites sprites]

Constructor

[name]()

Methods

[method:Object getSize]()

Returns an object containing the width and height of the renderer.

[method:null render]( [param:Scene scene], [param:PerspectiveCamera camera] )

Renders a [page:Scene scene] using a [page:PerspectiveCamera perspective camera].

[method:null setSize]([param:Number width], [param:Number height])

Resizes the renderer to (width, height).

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CSS3DRenderer.js examples/js/renderers/CSS3DRenderer.js]