Capítulo 535 de 859

Chapter 535: CSS3DSprite

Core Idea

A specialized version of CSS3DObject that represents DOM elements as sprites.

Key Concepts

  • isCSS3DSprite : boolean (readonly): This flag can be used for type testing.
  • rotation2D : number: The sprite's rotation in radians.

Code Examples

import { CSS3DSprite } from 'three/addons/renderers/CSS3DRenderer.js';
  • What it demonstrates: Typical usage of CSS3DSprite.

Reference Tables

Constructor

Signature
new CSS3DSprite( element : HTMLElement )

Properties

PropertyDescription
.isCSS3DSprite : boolean (readonly)This flag can be used for type testing.
.rotation2D : numberThe sprite's rotation in radians.

Key Takeaways

  1. CSS3DSprite extends: EventDispatcher → Object3D → CSS3DObject
  2. Most relevant properties: isCSS3DSprite, rotation2D.

Connects To