Toggle Sidebar B
AppearanceLight & dark mode D

Target Cursor

A cursor follow animation with 4 corners that lock onto targets.

Default

While this page is open the cursor covers the whole viewport, and the native cursor is hidden. Hover the boxes to lock the corners onto them. It is restored when you leave the page, and nothing renders on touch devices.

Dark previewReplay previewOpen in new tab

Hover Below.

THIS
FEELS
QUITE
SNAPPY!

Customize

Spin Duration2s
Hover Duration0.2s
Cursor Color
Cursor Color On Target

API Reference

TargetCursor

PropTypeDefaultDescription
targetSelectorstring".cursor-target"CSS selector for elements that should trigger the cursor targeting effect.
spinDurationnumber2Duration in seconds for the cursor's spinning animation when not targeting.
hideDefaultCursorbooleantrueWhether to hide the default browser cursor when the component is active.
hoverDurationnumber0.2Duration in seconds for the transition when the cursor locks onto a target.
parallaxOnbooleantrueEnables a subtle parallax effect on the corners when moving over a target.
cursorColorstring'#ffffff'Color of the cursor dot and corner brackets at rest.
cursorColorOnTargetstringundefinedOptional color the cursor smoothly transitions to while locked onto a target.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Hiding the native cursor is optional, set hideDefaultCursor to false to keep it. The overlay ignores pointer events and is not rendered on touch devices.
  • Keyboard focus is not tracked, so the lock-on only reflects the pointer.