
More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
targetSelector | '.cursor-target' | CSS selector for the elements the brackets lock onto. |
cursorColor | '#ffffff' | Color of the brackets and dot. |
cursorColorOnTarget | Color the cursor blends to while locked onto a target. | |
spinDuration | 2 | Seconds per turn while the cursor roams. 0 stops the spin. |
hoverDuration | 0.2 | How long the brackets take to snap onto a target, in seconds. |
parallaxOn | Lets the locked brackets lean slightly toward the cursor. | |
hideDefaultCursor | Hides the system cursor while this cursor is shown. | |
size | 36 | Size of the reticle while roaming, in px. |
cornerSize | 12 | Length of each bracket arm, in px. |
thickness | 3 | Stroke width of the brackets, in px. |
padding | 6 | Gap between a locked target and the brackets, in px. |
matchRadius | Rounds the brackets to follow the target's corner radius. | |
dotSize | 4 | Size of the center dot, in px. 0 hides it. |
blendMode | 'difference' | CSS blend mode of the cursor. Difference keeps it visible on any background. |
showLabel | Shows the data-cursor-label text of a locked target above the brackets. | |
clickEffect | Squeezes the brackets and dot while the mouse button is held. | |
container | RefObject | HTMLElement | Limits the cursor to one element. By default it works across the whole page. |
targetSelectorstringCSS selector for the elements the brackets lock onto.
'.cursor-target'cursorColorstringColor of the brackets and dot.
'#ffffff'cursorColorOnTargetstringColor the cursor blends to while locked onto a target.
spinDurationnumberSeconds per turn while the cursor roams. 0 stops the spin.
2hoverDurationnumberHow long the brackets take to snap onto a target, in seconds.
0.2parallaxOnbooleanLets the locked brackets lean slightly toward the cursor.
hideDefaultCursorbooleanHides the system cursor while this cursor is shown.
sizenumberSize of the reticle while roaming, in px.
36cornerSizenumberLength of each bracket arm, in px.
12thicknessnumberStroke width of the brackets, in px.
3paddingnumberGap between a locked target and the brackets, in px.
6matchRadiusbooleanRounds the brackets to follow the target's corner radius.
dotSizenumberSize of the center dot, in px. 0 hides it.
4blendModestringCSS blend mode of the cursor. Difference keeps it visible on any background.
'difference'showLabelbooleanShows the data-cursor-label text of a locked target above the brackets.
clickEffectbooleanSqueezes the brackets and dot while the mouse button is held.
containerRefObject | HTMLElementLimits the cursor to one element. By default it works across the whole page.



