NexusUI

Cursor Text Reveal

Component

About

A headline component that reveals a hidden line of text or image beneath the base text through a circular spotlight that follows the cursor.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cursor Text Reveal to your project and fits it to your theme.

Code

How Cursor Text Reveal is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CursorTextReveal } from "@/components/ui/cursor-text-reveal";

export default function CursorTextRevealDemo() {
  return (
    <div className="w-full h-screen flex items-center justify-center bg-zinc-950 p-6">
      <CursorTextReveal
        baseText="The first rule of motion is clarity."
        revealText="The second rule is feeling."
        containerClassName="w-full h-full"
      />
    </div>
  );
}

Dependencies

More by NexusUI

View all
  • Circular Carousel

    Circular Carousel

    1.3K
  • Images Badge

    Images Badge

    992
  • Chat Messages

    Chat Messages

    340
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    164
  • Infinite Moving Cards

    Infinite Moving Cards

    163
  • Shooting Stars Grid

    Shooting Stars Grid

    159
  • Logo Clouds

    Logo Clouds

    114
  • Image Trail

    Image Trail

    94