Toggle Sidebar B
AppearanceLight & dark mode D

Depth Text

Layered extruded type with parallax that shifts against the pointer.

Default

Move the pointer around the page and the extrusion tilts toward it. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab
Elevate

Customize

Face Color
Depth Color
Font Size
Weight
Layers34
Depth2.4px
Tilt7.5°
Smoothing0.14
Perspective900px
Orbit Speed0.35

API Reference

DepthText

PropTypeDefaultDescription
textstring"Elevate"The word or short phrase rendered as extruded type.
layersnumber34Number of stacked copies that form the extrusion. Clamped to protect the DOM.
depthnumber2.4Spacing in pixels between each layer of the extrusion.
faceColorstring"#f8fafc"Color of the crisp front face of the text.
depthColorstring"#7c3aed"Tint used for the back of the extrusion and its shadow.
tiltnumber7.5Maximum pointer-driven rotation in degrees.
pointerTrackingbooleantrueEnables smoothed pointer parallax on fine pointer devices.
smoothingnumber0.14Damping amount used to ease rotation toward the pointer target.
perspectivenumber900Perspective distance in pixels for the 3D stack.
autoOrbitbooleantrueAdds a subtle orbit when pointer tracking is unavailable or idle.
orbitSpeednumber0.35Speed of the fallback orbit in cycles per second.
fontSizestring"clamp(3rem, 12vw, 7rem)"CSS font-size value for the display word.
fontWeightnumber | string900Font weight used for every layer.
shadowbooleantrueAdds a soft colored drop shadow to the front face.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The extrusion layers are aria-hidden, so screen readers read the text once from the front face.
  • With prefers-reduced-motion the word stays at its resting angle.