JSFiddle - React, Tailwind, and code Playground
by luwes
HTML
<div class="rect"></div>
CSS
.rect {
width: 1000px;
height: 1000px;
background-color: #f00;
}
JavaScript
var time = Date.now();
document.querySelector('.rect').onmousemove = function() {
console.log(Date.now() - time);
time = Date.now();
}