CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/text-illuminate

Text Illuminate

A spotlight follows the cursor across the heading — letters under the beam glow and brighten, the rest fall into shadow.

ReactInteractiveFont#illuminate#spotlight#typography

Usage

import TextIlluminate from '@crazygl/hero-text-illuminate';

export default function Page() {
  return (
    <TextIlluminate
      heading="light it up"
      radius={260}
      lightColor="#ffffff"
    />
  );
}

Customise

  • Contentheading.
  • SpotlightlightSource (follow pointer / auto-orbit), orbitSpeed, radius, shadowColor, lightColor.
  • TypographyfontSize, headingFontFamily, headingFontWeight.
  • BackdroptransparentBackground, bgColor.

Best for

  • Bold, single-word or short-phrase hero headlines.
  • Dark, premium landing pages wanting an interactive typographic focal point.
  • Portfolios and product pages where a kinetic, GPU-free flourish suits the brand.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-text-illuminate
02 · Render the component

Import once, drop it in.

The component takes the same props you see in the live customizer on the right — every default ships poster-quality.

hero.tsx
import TextIlluminate from '@crazygl/hero-text-illuminate';

export default function Landing() {
  return (
    <TextIlluminate />
  );
}
03 · Use it in a page

SSR-safe by default.

The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.

page.tsx
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';

import TextIlluminate from '@crazygl/hero-text-illuminate';

export default function Page() {
  return (
    <section>
      <TextIlluminate
        heading="Say hi."
        subheading="Your new hero."
      />
      <article>
        <h2>Welcome</h2>
        <p>Your content keeps its own voice below the hero.</p>
      </article>
    </section>
  );
}
You might also like

Similar heroes

Cursor Reveal Text

Two stacked paragraphs — a primary line shown in the surface colour, and a secret reveal line shown only inside a cursor-following spotlight that grows on hover.

Text Reveal Lens

A cursor-driven lens that reveals the bright real colour of a heading from underneath a dim default. Five lens shapes — circle, rectangle, diamond, wave, star — with an optional gradient fill on the revealed text.

Gradient Text

Heading filled with a slowly drifting multi-stop linear gradient — three configurable colours, customizable angle, optional animation.

3D Depth Text

Heading extruded with stacked text-shadow layers — a faux-3D effect with a slow camera-style tilt that follows the cursor.

Cursor Shadow Text

The heading casts a real drop shadow whose direction tracks the cursor — like a single fixed light moving across the room.

Proximity Text FX

Letters near the cursor scale up and brighten; letters further away dim and shrink — an inverse-distance attention effect.
Live customizer

Text Illuminate

Light sourcePick one: the spotlight either tracks the cursor or orbits on its own.Spotlight radius (px)260pxShadow colourLight colourFont size150pxFontWeight800Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.