xpr-custom-cursor

1.0.1 • Public • Published

XPR Custom Cursor

How to use:

Install & require:

$ npm i xpr-custom-cursor --save
var XPRCustomCursor = require('xpr-custom-cursor');

Init:

// optional container el. if no container is specified, it will append to the body.
var container = document.querySelector(...); 

// optional opts, but markup is probably necessary ;)
var opts = {
  markup: '<span>custom cursor!</span>',
  styles: {
    color: 'red'
  }
}

var cursor = new XPRCustomCursor(container, opts);

Important: You'll have to style the inner markup yourself via classes or something. Also, if you're using Browserify, install browsernizr! :)

Readme

Keywords

none

Package Sidebar

Install

npm i xpr-custom-cursor

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.69 kB

Total Files

3

Last publish

Collaborators

  • outisfun