JSFiddle - React, Tailwind, and code Playground
HTML
<div class="x">0</div>
JavaScript
const x = document.querySelector(".x");
const MINUTE_LENGTH = 0.03;
document.addEventListener("mousemove", ({ clientX, clientY }) => {
if (clientX % 15 === 0) {
x.innerHTML = clientX * MINUTE_LENGTH;
}
})