CSS3DRenderer

CSS3DRenderer can be used to apply hierarchical 3D transformations to DOM elements via the CSS3 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 CSS3DRenderer 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

molecules
orthographic camera
panorama
periodictable
sprites

Constructor

CSS3DRenderer()

Methods

.getSize () : Object

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

.render (scene : Scene, camera : PerspectiveCamera) : null

Renders a scene using a perspective camera.

.setSize (width : Number, height : Number) : null

Resizes the renderer to (width, height).

Source

For more info on how to obtain the source code of this module see this page.