Your headline rendered inside a glowing circular portal — text drifts across the opening, the rim glows and ripples with noise, and the pointer bends the portal in real time. Built as a single fullscreen WebGL shader that samples a canvas-rendered text texture with chromatic aberration.
import TypographyInPortal from '@crazygl/hero-typography-in-portal';
export default function Page() {
return (
<TypographyInPortal
heading="Step through."
portalRadius={0.35}
rimGlowColor="#7fb6ff"
/>
);
}heading (drawn in the portal), subheading, ctaLabel, onCTAClick (URL or function).portalRadius, portalEdgeDistortion, portalEdgeAnimSpeed.rimGlowColor/rimGlowIntensity, innerGlowColor/innerGlowIntensity.textColor, textScale, textScrollSpeed (ticker drift), textChromaticAberration, textRepeatGap.pointerBend, pointerOffsetStrength (portal follows cursor).bgColor, starDensity, headingFontFamily, headingFontWeight.npm install @crazygl/hero-typography-in-portalThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TypographyInPortal from '@crazygl/hero-typography-in-portal';
export default function Landing() {
return (
<TypographyInPortal />
);
}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 TypographyInPortal from '@crazygl/hero-typography-in-portal';
export default function Page() {
return (
<section>
<TypographyInPortal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}