Core API

Cursor()

Creates a new Cursor instance to orchestrate automated interactions.

Cursor()

The main entry point for creating an automated cursor sequence. It initializes the engine, the visual ghost cursor, and the action queue.

Options

Prop

Type

Example

import { Cursor } from '@cursor.js/core';

const cursor = new Cursor({
  speed: 1.2,
  humanize: true,
  size: 1.5,
});

cursor.hover('.login-button').click('.login-button');

On this page