JSFiddle - React, Tailwind, and code Playground
HTML
<a href="https://jsfiddle.net/chnk8t95/2/" target="_top"></a>
SCSS
a {
color: #333;
background-color: #ddd;
display: inline-block;
line-height: 40px;
padding: 20px;
text-decoration: none;
transition-duration: .4s;
&:before {
content: "non-hovered";
}
&:hover {
background-color: #a00;
color: white;
&:before {
content: "hovered state";
}
}
}
JavaScript
$("a").css("pointer-events", "none");
$("body").one("mousemove", function() {
$("a").css("pointer-events", "auto");
});