Currently, I am attempting to customize my cursor so that it only changes when hovering over links. Instead of setting cursor: none
for the entire body, I am working on removing the default hand cursor using JavaScript. Despite the inspector showing that the body cursor is set to cursor: none
, the hand cursor still displays above my custom cursor.
link.addEventListener("mouseover", () => {
mouseCursor.classList.add("cursorHov");
document.body.style.cursor = 'none';
});