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

PropTypeDefaultDescription
colorstring'white'Color of the crosshair lines
containerRefRefObject<HTMLElement>nullContainer reference for scoped effect