Crosshair

Crosshair is scoped to this card.

Hover inside to activate

Magnetic Crosshair

Smoothly interpolated guide lines that react to pointer movement. Links inside the container trigger a subtle distortion burst.

Explore Docs

Customize Crosshair

Supply any valid CSS color. Hex, rgb(), or CSS variables all work.

Scoped to container

Toggle to switch between card-scoped tracking and full screen behaviour.

Props

PropertyTypeDefaultDescription
colorstringwhiteThe color of the crosshair lines.
containerRefRefObject<HTMLElement | HTMLDivElement>-Optional container reference to scope the crosshair movement within a specific element.

Dependencies

gsap

Created with ❤️ by Cybershoora