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

/followcursor/

    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