JSFiddle - React, Tailwind, and code Playground
by happi
HTML
<a href="#" class="show-image">
<img src="http://www.uniqlo.com/us/tiles/images/20130814/520bee8eae8a1.jpg" />
<a href="#" class="the-button">Button here</a>
</a>
CSS
a.show-image {
position: relative;
display:block;
width:250px;
height:300px;
margin:5px; overflow:hidden}
a.show-image > a.the-button {
position:absolute;
top:0;
left:0; }
JavaScript
jQuery(function() {
jQuery(".the-button").hide();
jQuery('a.show-image').hover(function() {
jQuery(this).find('.the-button').fadeIn(1500);
}, function() {
jQuery(this).find('.the-button').fadeOut(1500);
});
});