Heading with a soft, gradient-faded reflection below it. The reflection extends out across a tilted floor, and lightly tracks the pointer — the bottom skews under the cursor, the top stays anchored to the heading.
import ReflectiveText from '@crazygl/hero-reflectivetext';
export default function Page() {
return (
<ReflectiveText
heading="REFLECT"
perspectiveTilt={0.58}
reflectionOpacity={0.26}
/>
);
}heading, subheading.reflectionOpacity, gapPct (gap as % of font size), blurAmount, perspectiveTilt (floor tilt).pointerReactivity (skew/tilt response to the cursor).textColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-reflectivetextThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ReflectiveText from '@crazygl/hero-reflectivetext';
export default function Landing() {
return (
<ReflectiveText />
);
}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 ReflectiveText from '@crazygl/hero-reflectivetext';
export default function Page() {
return (
<section>
<ReflectiveText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}