cursor-helper
Cursor utility implementing all the different behaviors with priority between components
Example
Example on antoninlanglade.github.io/cursor-helper/
Features & Requirements
- Add multiple cursor behavior on different indexes
- All availables cursors https://github.com/wagerfield/cursor
Module Installation & Usage
Installation from npm
# using npm $ npm install --save cursor-helper # or using yarn $ yarn add cursor-helper
Usage with npm and a module bundler
const CursorHelper = // CommonJS module import // Declaring a new cursor behavior cursor-example at index 10const key = 'cursor-example'CursorHelper// Set cursor for this cursorCursorHelper// Remove cursorCursorHelper
Development commands
npm install
- Install all npm dependenciesnpm run start
- Start the dev server with livereload on the example foldernpm run build
- Bundle your library in CJS / UMD / ESMnpm run deploy
- Deploy your example folder on a gh-page branchnpm run test
- Lint your js inside the src folder
License
MIT.
Package
Packaged with https://github.com/pqml/brique ❤️