FollowCursor
![demo]()
Usage
Install
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