followcursor

1.2.3 • Public • Published

FollowCursor

demo

Usage

Install

yarn add followcursor

HTML

<script src="node_modules/followcursor/dist/followcursor.min.js"></script>
<!--if supporting IE11-->
<script src="node_modules/babel-polyfill/dist/polyfill-min.js"></script>

JS

//Any list of elements
const elemList = document.querySelector("SELECTOR");

//Value from 0-90 (Default is 10 if none provided)
const scale = 50

window.onload = function () {
    followCursor(elemList, scale);
};

Development

# Compile code once
yarn run babel
# Watch for code changes
yarn run babel-watch
# Minify code
yarn run uglify

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.31latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.31
1.2.20
1.2.10
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i followcursor

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

11.9 kB

Total Files

9

Last publish

Collaborators

  • berslucas