@janmarkuslanger/cursor-js
v0.1.0
Published
Create your own cursor with vanilla js.
Downloads
2
Readme
cursor.js
Create your own custom cursor with vanilla js.
Install
via npm
npm i @janmarkuslanger/cursor-js --save
via script
Add the file cursor.js
into your project
<script src="cursor.js"></script>
Usage
via npm
const Cursor = require('cursor-js');
const my Cursor = new Cursor();
via script
<body>
<script src="cursor.js"></script>
<script>
const my Cursor = new Cursor();
</script>
</body>
Options
Here are the available option params and their default values
new Cursor({
size: 36,
borderWidth: 3,
borderColor: 'black',
borderRadius: '50%',
root: document.querySelector('body'),
hideCursor: true
});
Callbacks
Coming soon
Need help or you need a feature?
If you need some help to get started or you have an issue? Create an issue or write me [email protected]