Example on antoninlanglade.github.io/cursor-helper/
- Add multiple cursor behavior on different indexes
- All availables cursors https://github.com/wagerfield/cursor
# using npm
$ npm install --save cursor-helper
# or using yarn
$ yarn add cursor-helper
import CursorHelper from 'cursor-helper' // ES6 module import
const CursorHelper = require('cursor-helper') // CommonJS module import
// Declaring a new cursor behavior cursor-example at index 10
const key = 'cursor-example'
CursorHelper.add(key, 10)
// Set cursor for this cursor
CursorHelper.setCursor(key, 'grab')
// Remove cursor
CursorHelper.remove(key)
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
MIT.
Packaged with https://github.com/pqml/brique ❤️