JSFiddle - React, Tailwind, and code Playground
HTML
<div class="fader">
<img src="http://placehold.it/300x300/000fff" />
<img src="http://placehold.it/300x300/fff000" />
</div>
CSS
.fader { display: inline-block; }
.fader img:last-child {
position: absolute;
top: 0;
left: 0;
display: none;
}
JavaScript
$('.fader').hover(function() {
$(this).find("img").fadeToggle();
});