Inheritance: EventDispatcher → Object3D → CSS3DObject →
A specialized version of CSS3DObject that represents DOM elements as sprites.
CSS3DSprite is an addon, and must be imported explicitly, see Installation#Addons.
import { CSS3DSprite } from 'three/addons/renderers/CSS3DRenderer.js';
Constructs a new CSS3D sprite object.
element
The DOM element.
This flag can be used for type testing.
Default is true.
The sprite's rotation in radians.
Default is 0.