JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-2.2.4.min.js"></script>
<div>Test</div>
CSS
div {
width: 50px;
height: 50px;
background-color: green;
cursor: pointer;
}
div:hover{
background-color: yellow;
color:red;
}
JavaScript
function mobileHover() {
$('*').on('touchstart', function () {
$(this).trigger('hover');
}).on('touchend', function () {
$(this).trigger('hover');
});
};
mobileHover();