JSFiddle - React, Tailwind, and code Playground

by Alee

HTML

<div class="imgHover">
    <div class="hover">Test Content for the hover</div>
    <img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="" />
</div>

CSS

.imgHover .hover { 
    display: none;
    position: absolute;
    z-index: 2;
}

JavaScript

$(".imgHover").hover(function() {
    $(this).children("img").fadeTo(200, 0.25)
           .end().children(".hover").show();
}, function() {
    $(this).children("img").fadeTo(200, 1)
           .end().children(".hover").hide();
});