Crosshair
Animated crosshair cursor with GSAP effects and noise filters
Configuring your account...
Please wait while we prepare everything for you
Usage
import { useRef } from 'react';
import Crosshair from './Crosshair';
const Component = () => {
const containerRef = useRef(null);
return (
<div ref={containerRef} style={{ height: '300px', overflow: 'hidden' }}>
<Crosshair color="#ffffff" />
<h1>Move your cursor</h1>
<a href="#">Hover over links for effects</a>
</div>
);
};Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | 'white' | Color of the crosshair lines |
containerRef | RefObject<HTMLElement> | null | Container reference for scoped effect |