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

Cursor Shadow Text

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

ReactInteractiveFont#shadow#cursor#typography

Usage

import CursorShadowText from '@crazygl/hero-cursor-shadow-text';

export default function Hero() {
  return (
    <CursorShadowText
      heading="follow the light"
      shadowColor="#5b8def"
      maxOffset={40}
      blur={12}
    />
  );
}

Customise

  • Contentheading text.
  • ShadowshadowColor, maxOffset (how far the shadow throws at the screen edges), blur.
  • TypographytextColor, fontSize, headingFontFamily (Google Font), headingFontWeight.
  • BackdroptransparentBackground toggle and bgColor.

Best for

  • Minimal, interactive landing headlines that reward a moving cursor.
  • Portfolios and agency sites wanting a tactile, playful headline.
  • Product launches where a single bold word should feel physical and lit.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-cursor-shadow-text
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 CursorShadowText from '@crazygl/hero-cursor-shadow-text';

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

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

Long Shadow Text

Pure CSS long-shadow heading — letters cast a diagonal ramp shadow that gradient-fades into the bg, like classic flat-design posters.

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.

Magnet Text

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

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.

Proximity Text FX

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

Cursor Shadow Text

Shadow colourMax offset (px)40pxShadow blur (px)12pxText colourFont size160pxFontWeight800Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.