1.2.3 • Published 5 years ago

followcursor v1.2.3

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

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
1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago