<body>
</body>
body {
  height: 100vh;
}

p {
  text-align: center;
}
$('body').mousemove(function(event) {
  console.log(event.clientX, event.clientY);
  var div = $("<div></div>");

  div.css({
    'position': 'absolute',
    'top': event.clientY + 'px',
    'left': event.clientX + 'px',
    'background': 'url(https://cdn1.iconfinder.com/data/icons/CrystalClear/22x22/actions/14_select.png)',
    'width': '22px',
    'height': '22px',
  });

  $('body').append(div);
});
Rerun