Skip to content
PixiKit

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
NameTypeDefaultDescription
scope"container" | "page""container"Where the cursor works: the nearest positioned parent, or the whole page.
targetSelectorstring".cursor-target"CSS selector of the elements the brackets lock onto.
cursorColorstring"#ffffff"Colour of the brackets and dot.
cursorColorOnTargetstringNoneColour the cursor blends to while locked onto a target.
spinDurationnumber2Seconds per turn while the cursor roams; 0 stops the spin.
hoverDurationnumber0.2How long the brackets take to snap onto a target, in seconds.
parallaxOnbooleantrueLets the locked brackets lean slightly toward the pointer.
hideDefaultCursorbooleantrueHides the system cursor while this cursor is shown.
sizenumber36Size of the reticle while roaming, in pixels.
cornerSizenumber12Length of each bracket arm, in pixels.
thicknessnumber3Stroke width of the brackets, in pixels.
paddingnumber6Gap between a locked target and the brackets, in pixels.
matchRadiusbooleantrueRounds the brackets to follow the target's corner radius.
dotSizenumber4Size of the centre dot in pixels; 0 hides it.
blendModestring"difference"CSS blend mode of the cursor; `difference` keeps it visible on any background.
showLabelbooleantrueShows the `data-cursor-label` text of a locked target above the brackets.
clickEffectbooleantrueSqueezes the brackets and dot while the pointer button is held.
containerRefObject<HTMLElement | null> | HTMLElementNoneLimits the cursor to one element; by default it works across its scope.
classNamestringNone

More interaction effects in Pro

View all

Related