Built to the pixel

Move around, then hover the buttons and the heading.

Thickness
1px
Opacity
0.85
Gap
0px
Fade
0
Smoothing
0.35

More cursor effects in Pro

Cursor trails and pointer effects that give a site its own feel.

View all 19
16 properties
color'#ffffff'Color of the lines, labels and brackets.
containerRefRefObject<HTMLElement>nullKeeps the crosshair inside this element, which needs a position other than static. Without it the crosshair covers the whole viewport.
thicknessLine thickness in px.
opacity0.85Opacity of everything the crosshair draws.
lineStyle'solid' | 'dashed' | 'dotted''solid'Stroke style of the two lines.
gapEmpty space in px left around the pointer where the lines would cross.
fadeHow much the lines fade out toward the edges, from 0 to 1.
smoothing0.35How far the lines trail behind the pointer. 0 sticks to it.
showCoordinatesShows the pointer position where the lines meet the edges, and the size of a locked target.
targetEffect'lock' | 'glitch' | 'none''lock'What happens over a target. Lock frames it with corner brackets and measures it, glitch shakes the lines like a bad signal.
targetSelector'a, button, [data-crosshair-target]'CSS selector for the elements the crosshair reacts to.
clickPulseSends a ring out from the pointer on every click or tap.
hideCursorHides the system cursor inside the crosshair area and marks the pointer with a dot instead.
blendMode'normal' | 'difference''normal'Difference inverts whatever is under the lines, so they stay visible on any background.
Extra class names for the canvas.
Inline styles for the canvas.
colorstring

Color of the lines, labels and brackets.

Default'#ffffff'
containerRefRefObject<HTMLElement>

Keeps the crosshair inside this element, which needs a position other than static. Without it the crosshair covers the whole viewport.

Defaultnull
thicknessnumber

Line thickness in px.

opacitynumber

Opacity of everything the crosshair draws.

Default0.85
lineStyle'solid' | 'dashed' | 'dotted'

Stroke style of the two lines.

Default'solid'
gapnumber

Empty space in px left around the pointer where the lines would cross.

fadenumber

How much the lines fade out toward the edges, from 0 to 1.

smoothingnumber

How far the lines trail behind the pointer. 0 sticks to it.

Default0.35
showCoordinatesboolean

Shows the pointer position where the lines meet the edges, and the size of a locked target.

targetEffect'lock' | 'glitch' | 'none'

What happens over a target. Lock frames it with corner brackets and measures it, glitch shakes the lines like a bad signal.

Default'lock'
targetSelectorstring

CSS selector for the elements the crosshair reacts to.

Default'a, button, [data-crosshair-target]'
clickPulseboolean

Sends a ring out from the pointer on every click or tap.

hideCursorboolean

Hides the system cursor inside the crosshair area and marks the pointer with a dot instead.

blendMode'normal' | 'difference'

Difference inverts whatever is under the lines, so they stay visible on any background.

Default'normal'

Extra class names for the canvas.

Inline styles for the canvas.