Import
CSS3DObject is an addon, and must be imported explicitly, see Installation#Addons.
import { CSS3DObject } from 'three/addons/renderers/CSS3DRenderer.js';
Constructor
new CSS3DObject( element : HTMLElement )
Constructs a new CSS3D object.
| element |
The DOM element. |
Properties
.element : HTMLElement (readonly)
The DOM element which defines the appearance of this 3D object.
Default is true.
.isCSS3DObject : boolean (readonly)
This flag can be used for type testing.
Default is true.