An open API service indexing awesome lists of open source software.

https://github.com/samdenty/virtual-cursor

A virtual cursor implemented in JavaScript
https://github.com/samdenty/virtual-cursor

Last synced: 5 months ago
JSON representation

A virtual cursor implemented in JavaScript

Awesome Lists containing this project

README

          

# [virtual-cursor](https://virtual-cursor.netlify.com/)

[![](https://i.imgur.com/vbYGuc9.png)](https://virtual-cursor.netlify.com/)

A cursor implemented in JavaScript [Demo](https://virtual-cursor.netlify.com/)

- Powerful plugin system
- Comes with plugins that imitate native behaviour:
- **DragSelection** - Drag to select text
- **ClickSelection** - Select words by double clicking them
- **WindowBoundary** - Prevents the cursor from moving outside the page
- **NativeEvents** - Interoperability with native JS mouse events

# Why

- Apply custom easing to the movements
- Sync mouse movements across browsers
- Loads more

# Usage

see `test/index.ts` and `src/CursorCapture/plugins/*` for examples on how to create plugins