element follow cursor code example
Example: element follow cursor
window.addEventListener('mousemove', nutterbutter); function nutterbutter(){ var _el = document.getElementById('woo'); _el.style.top = event.clientY + "px"; _el.style.left = event.clientX + "px"; }