Core API
move()
Moves the cursor to a specific coordinate or element.
move()
Glides the Ghost Cursor directly towards explicit page coordinates (x, y) or towards a DOM element (selector), triggering .onMove() events without invoking hover states automatically.
Use Cases
- Hovering over a button: Showing the user "Look, we are navigating to this button first."
- Hovering over an image: Pointing to or highlighting a specific area on the screen.
Example
const cursor = new Cursor();
// Coordinate-based
cursor.move(350, 420);
// Element-based
cursor.move('.target-element');