Import
CSS3DSprite is an addon, and must be imported explicitly, see Installation#Addons.
import { CSS3DSprite } from 'three/addons/renderers/CSS3DRenderer.js';
Constructor
new CSS3DSprite( element : HTMLElement )
Constructs a new CSS3D sprite object.
| element |
The DOM element. |
Properties
.isCSS3DSprite : boolean (readonly)
This flag can be used for type testing.
Default is true.
.rotation2D : number
The sprite's rotation in radians.
Default is 0.