felix-au

Neon Glow Cursor

Component

About

A custom animated cursor that replaces the pointer with a pulsing neon-colored glowing dot, growing and dimming over hovered buttons/links and cycling through neon colors on click.

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

Code

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

Usage.tsx

"use client";
import NeonGlowCursor from "@/components/ui/neon-glow-cursor";
import { useRef } from "react";

export default function NeonGlowCursorDemo() {
  const containerRef = useRef<HTMLDivElement>(null);

  return (
    <div
      ref={containerRef}
      className="relative w-full h-screen overflow-hidden bg-black flex items-center justify-center gap-6"
      style={{ cursor: "none" }}
    >
      <NeonGlowCursor
        containerRef={containerRef}
        config={{
          color: "#7c5cfc",
          size: 10,
          pulseSpeed: 0.5,
          glowRadius: 5,
          opacity: 1.0,
          pointerAnim: true,
          pointerScale: 3.0,
          clickAnim: true,
        }}
      />
      <button className="px-5 py-2.5 rounded-md bg-white text-black font-medium">
        Primary
      </button>
      <button className="px-5 py-2.5 rounded-md border border-white/30 text-white font-medium">
        Secondary
      </button>
    </div>
  );
}

More by felix-au

View all
  • Matrix Rain Cursor

    Matrix Rain Cursor

    34
  • Constellation Cursor

    Constellation Cursor

    13
  • Wind Stream Cursor

    Wind Stream Cursor

    5
  • DNA Helix Cursor

    DNA Helix Cursor

    5
  • Rainbow Comet Cursor

    Rainbow Comet Cursor

    5
  • Pixel Shatter Cursor

    Pixel Shatter Cursor

    2
  • Bubble Float Cursor

    Bubble Float Cursor

    2
  • Ripple Wave Cursor

    Ripple Wave Cursor

    1