<div id="pointer"></div>
<script>
const $pointer = document.getElementById('pointer');
document.addEventListener('mousemove', e => {
$pointer.style.transform = 'translate(' + e.clientX + 'px, ' + e.clientY + 'px)';
});
</script>
<div id="pointer"></div>
<script>
const $pointer = document.getElementById('pointer');
document.addEventListener('mousemove', e => {
$pointer.style.transform = 'translate(' + e.clientX + 'px, ' + e.clientY + 'px)';
});
</script>