@janmarkuslanger/cursor-js

0.1.0 • Public • Published

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 jan-markus@gmx.de

Readme

Keywords

none

Package Sidebar

Install

npm i @janmarkuslanger/cursor-js

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.27 kB

Total Files

5

Last publish

Collaborators

  • janmarkuslanger