Core API
hover()
Move cursor to the target element.
hover()
Moves the virtual cursor to the specified target.
Use Cases
- Hovering over a button: Triggering tooltips or enabling a dropdown menu to appear.
- Triggering hover effects on cards: Demonstrating hover state animations on product cards in e-commerce sites.
Example
const cursor = new Cursor();
cursor.hover('#button-1').wait(500);
// Use bounding coordinates
cursor.hover({ x: 200, y: 300 });