felix-au

Crosshair Scope Cursor

Component 1

About

A canvas-based custom cursor that renders an animated tactical crosshair/scope reticle which sweeps, tracks the mouse inside a container, swaps color when hovering interactive elements, and squeezes on click.

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

Code

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

Usage.tsx

"use client";

import CrosshairScopeCursor from "@/components/ui/crosshair-scope-cursor";
import * as React from "react";

export default function CrosshairScopeCursorDemo() {
  const containerRef = React.useRef(null);

  return (
    <div
      ref={containerRef}
      className="relative w-full h-screen overflow-hidden bg-black text-white"
      style={{ cursor: "none" }}
    >
      <CrosshairScopeCursor containerRef={containerRef} config={{}} />
    </div>
  );
}

More by felix-au

View all
  • Matrix Rain Cursor

    Matrix Rain Cursor

    35
  • 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