Depth Text(011)

Creates multi-layered 3D extruded typography shifting depth relative to cursor position.

Hover
Loading…

Installation

$npx kibo add depth-text

Usage

1import { DepthText } from "@/components/kibo/depth-text/component";
2
3export default function Example() {
4 return (
5 <DepthText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstring'Elevate'The text content to display and animate.
layersnumber34Controls the layers for the component animation.
depthnumber2.4Controls the depth for the component animation.
faceColorstring'#f8fafc'Controls the face color for the component animation.
depthColorstring'#7c3aed'Controls the depth color for the component animation.
tiltnumber7.5Controls the tilt for the component animation.
pointerTrackingbooleantrueControls the pointer tracking for the component animation.
smoothingnumber0.14Controls the smoothing for the component animation.
perspectivenumber900Controls the perspective for the component animation.
autoOrbitbooleantrueControls the auto orbit for the component animation.
orbitSpeednumber0.35Controls the orbit speed for the component animation.
fontSizestring'clamp(3rem, 12vw, 7rem)'Font size in pixels, rems, or fluid clamp notation.
fontWeightnumber | string900Font weight (e.g., 400, 700, 900, 'bold').
shadowbooleantrueControls the shadow for the component animation.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties{}Controls the style for the component animation.