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>
);
}







