JSFiddle - React, Tailwind, and code Playground
by Town
HTML
<div class="red">
</div>
CSS
div { height: 500px; width: 500px; background-image: url(http://www.christownsend.com/images/superdog.jpg); background-repeat: no-repeat;}
.red {background-color: red;}
.blue {background-color: blue;}
JavaScript
$('div').on("mouseover mouseout", function() {
$(this).toggleClass("red blue"); });