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
- Host: GitHub
- URL: https://github.com/samdenty/virtual-cursor
- Owner: samdenty
- Created: 2018-10-06T18:49:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T21:44:58.000Z (about 7 years ago)
- Last Synced: 2025-07-21T21:34:38.718Z (5 months ago)
- Language: TypeScript
- Homepage: https://virtual-cursor.netlify.com/
- Size: 174 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [virtual-cursor](https://virtual-cursor.netlify.com/)
[](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