JSFiddle - React, Tailwind, and code Playground
HTML
<div class="hoverPrice">
<a href="#">
<div class="hoverPriceBg"></div>
<div class="hoverPriceCirc">
<span class="price">$20.00</span>
</div>
</a>
<a href="#">
<img src="http://www.trueentity.com/media/catalog/product/b/a/baseballtee_1_1.jpg">
</a>
</div>
CSS
.hoverPrice{
position:relative;
width:300px;
width:300px;
}
.hoverPrice a:first-child{
display:none;
}
img{
height:100%;
width:100%;
}
.hoverPriceBg {
width: 100%;
height:100%;
position: absolute;
z-index: 2;
background-color: #033;
-ms-filter: "alpha(opacity=50)";
filter: alpha(opacity=50);
opacity: .5;
}
.hoverPriceCirc {
position: absolute;
z-index: 3;
padding:25%;
text-align: center;
background: #37c4f3;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
-webkit-box-shadow: rgba(0,0,0,0.2) 0 1px 3px;
-moz-box-shadow: rgba(0,0,0,0.2) 0 1px 3px;
box-shadow: rgba(0,0,0,0.2) 0 1px 3px;
top: 25%;
left: 25%;
}
.hoverPriceCirc span {
position: absolute;
z-index: 4;
color: white;
width: 100%;
top: 39%;
left: 0;
text-align: center;
font-size: 2em;
}
JavaScript
jQuery(".hoverPrice").hover(
function(){
jQuery(this).find("a:first").fade(200);
},
function(){
jQuery(this).find("a:first").fadeOut(200);
}
);