CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/proximitytextfx

Proximity Text FX

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

ReactInteractiveFont#proximity#cursor#typography

Usage

import ProximityTextFx from '@crazygl/hero-proximitytextfx';

export default function Hero() {
	return (
		<ProximityTextFx
			heading="follow the cursor"
			radius={240}
			peakScale={1.6}
		/>
	);
}

Customise

  • Effectradius (influence falloff in px), peakScale (max letter scale at the cursor), minBrightness (opacity floor for far letters).
  • TypographytextColor, fontSize, headingFontFamily, headingFontWeight.
  • BackdropbgColor or transparentBackground.

Best for

  • Interactive landing pages and portfolio headers that reward cursor movement.
  • Playful product or agency splash sections.
  • Call-to-action headlines where you want the eye to follow the pointer.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-proximitytextfx
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 ProximityTextFX from '@crazygl/hero-proximitytextfx';

export default function Landing() {
  return (
    <ProximityTextFX />
  );
}
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 ProximityTextFX from '@crazygl/hero-proximitytextfx';

export default function Page() {
  return (
    <section>
      <ProximityTextFX
        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

Magnet Text

Letters are pulled toward the cursor with falloff — close letters attract strongly, distant letters barely tug. Springs return them to the line.

Cursor Shadow Text

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

Mouse Wave Text

A wave travels along the heading following the cursor — each letter pops up as the wave passes, then settles back. Switch to auto mode for a hands-off demo.

Text Image Cursor

A list of items where hovering each row reveals a thumbnail that follows the cursor — case-study index pattern, magazine-grade.

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.

Pro Text Type Effect

A pro-grade typewriter: cycles through multiple strings with variable per-character speed, fluid font sizing (clamp), per-line gradient fills, and a choice of cursor characters from block to slug to bar.
Live customizer

Proximity Text FX

Influence radius (px)240pxPeak scale1.6Min brightness0.35Text colourFont size110pxFontWeight700Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.