JSFiddle - React, Tailwind, and code Playground
by teneff
HTML
<div></div>
JavaScript
var dcss = {x: 0, y: 0};
var d = $('div:first').css({
width: '10px',
height: '10px',
borderRadius: '10px',
border: '2px solid #333',
position: 'absolute'
});
$(document).mousemove(function(e){
dcss = {x: e.pageX / 8, y: e.pageY / 8};
});
setInterval(function(){
d.css(dcss);
}, 200);