File: CSS2DObject.md | Updated: 11/15/2025
The only type of 3D object that is supported by CSS2DRenderer.
CSS2DObject is an addon, and must be imported explicitly, see Installation#Addons.
import { CSS2DObject } from 'three/addons/renderers/CSS2DRenderer.js';
Constructs a new CSS2D object.
element | The DOM element.
---|---
The 3D objects center point. ( 0, 0 ) is the lower left, ( 1, 1 ) is the top right.
Default is (0.5,0.5).
The DOM element which defines the appearance of this 3D object.
Default is true.
This flag can be used for type testing.
Default is true.