Heading extruded with stacked text-shadow layers — a faux-3D effect with a slow camera-style tilt that follows the cursor.
import ThreeDDepthText from '@crazygl/hero-3d-depth-text-effect';
export default function Hero() {
return <ThreeDDepthText heading="DEEP" depthLayers={22} sideColor="#5b8def" />;
}heading text.depthLayers (number of stacked shadow copies), depthSpacing (px between layers), tiltStrength (max cursor-driven tilt in degrees).faceColor, sideColor (the extruded side), fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-3d-depth-text-effectThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import 3DDepthText from '@crazygl/hero-3d-depth-text-effect';
export default function Landing() {
return (
<3DDepthText />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import 3DDepthText from '@crazygl/hero-3d-depth-text-effect';
export default function Page() {
return (
<section>
<3DDepthText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}