Bracket Cursor
A reticle cursor whose four corner brackets spin while it roams and snap around the element it hovers, matching its shape.
pixikit.com/docs/effects/bracket-cursor
Customize
Scope
Cursor color
Cursor color on target
Spin duration2.0s
Hover duration0.20s
Parallax on
Hide default cursor
Size36px
Corner size12px
Thickness3px
Padding6px
Match radius
Dot size4px
Blend mode
Show label
Click effect
Props
19| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Where the cursor works: the nearest positioned parent, or the whole page. |
targetSelector | string | ".cursor-target" | CSS selector of the elements the brackets lock onto. |
cursorColor | string | "#ffffff" | Colour of the brackets and dot. |
cursorColorOnTarget | string | None | Colour the cursor blends to while locked onto a target. |
spinDuration | number | 2 | Seconds per turn while the cursor roams; 0 stops the spin. |
hoverDuration | number | 0.2 | How long the brackets take to snap onto a target, in seconds. |
parallaxOn | boolean | true | Lets the locked brackets lean slightly toward the pointer. |
hideDefaultCursor | boolean | true | Hides the system cursor while this cursor is shown. |
size | number | 36 | Size of the reticle while roaming, in pixels. |
cornerSize | number | 12 | Length of each bracket arm, in pixels. |
thickness | number | 3 | Stroke width of the brackets, in pixels. |
padding | number | 6 | Gap between a locked target and the brackets, in pixels. |
matchRadius | boolean | true | Rounds the brackets to follow the target's corner radius. |
dotSize | number | 4 | Size of the centre dot in pixels; 0 hides it. |
blendMode | string | "difference" | CSS blend mode of the cursor; `difference` keeps it visible on any background. |
showLabel | boolean | true | Shows the `data-cursor-label` text of a locked target above the brackets. |
clickEffect | boolean | true | Squeezes the brackets and dot while the pointer button is held. |
container | RefObject<HTMLElement | null> | HTMLElement | None | Limits the cursor to one element; by default it works across its scope. |
className | string | None |