JSFiddle - React, Tailwind, and code Playground
by felipepalazzo
HTML
<section class="feat-products cf">
<ul>
<li>
<a href="http://fiveblu.dafiti.com.br/roupas-masculinas/camisetas/" onclick="_gaq.push(['_trackEvent', 'Highlights', 'Click', 'T-Shirts']);">
<div class="shop-now">
<p><strong>SHOP<br />NOW</strong></p>
</div>
<img src="http://www.fiveblu.com/br/files/2012/08/banner-5.jpg" alt="T-Shirts">
</a>
</li>
<li><a href="http://fiveblu.dafiti.com.br/special-price/fiveblu/?segment=feminino" onclick="_gaq.push(['_trackEvent', 'Highlights', 'Click', 'Queremos Descontos!']);">
<div class="shop-button">
<p><strong>SHOP NOW</strong></p>
</div>
<img src="http://www.fiveblu.com/br/files/2012/08/banner-2-off.jpg" alt="Queremos Descontos!"></a></li>
<li><a href="http://fiveblu.dafiti.com.br/calcados-masculinos/sapatenis/" onclick="_gaq.push(['_trackEvent', 'Highlights', 'Click', 'Sapatênis']);"><div class="shop-circle">
<div class="circle">
<p><strong>SHOP<br />NOW</strong></p>
</div>
</div><img src="http://www.fiveblu.com/br/files/2012/08/sapatenis12-tn1.jpg" alt="Sapatênis"></a></li>
</ul>
</section>
CSS
ul li{
display: inline;
}
.feat-products {
width: 100%;
margin: auto;
position: relative;
padding-bottom: 40px;
}
.feat-products ul {
list-style: none;
text-align: center;
}
.feat-products ul li {
display: inline-block;
margin-left: 15px;
float: left;
position: relative;
}
.feat-products ul li a .shop-now{
width: 306px;
height: 320px;
display: none;
background: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 0;
color: white;
}
.shop-now p{
font-family: arial, sans-serif;
font-size: 50px;
padding: 65px 0;
text-align: center;
line-height: 1.0em;
text-shadow: 1px 1px 0 #000;
margin-top: 50px;
}
.feat-products ul li a:hover .shop-now{
display: block;
box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6);
}
.feat-products .shop-button{
position: absolute;
top: 0;
left:0;
background: rgba(255, 255, 255, 0.6);
width: 100%;
height: 100%;
display: none;
}
.feat-products .shop-button p{
color: #FFF;
text-decoration: none;
background: #0e0e0e;
background: -moz-linear-gradient(top, #0e0e0e 0%, #7d7e7d 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0e0e0e), color-stop(100%,#7d7e7d));
background: -webkit-linear-gradient(top, #0e0e0e 0%,#7d7e7d 100%);
background: -o-linear-gradient(top, #0e0e0e 0%,#7d7e7d 100%);
background: -ms-linear-gradient(top, #0e0e0e 0%,#7d7e7d 100%);
background: linear-gradient(to bottom, #0e0e0e 0%,#7d7e7d 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0e0e0e', endColorstr='#7d7e7d',GradientType=0 );
border-radius: 10px;
padding: 10px 0;
font-family: Arial, sans-serif;
text-align: center;
text-shadow: 1px 1px 0 #000;
box-shadow: 1px 1px 2px #333;
width: 150px;
margin-top: 140px;
margin-left: 78px;
}
.feat-products ul li a:hover .shop-button{
display: block;
}
.feat-products .shop-circle{
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.6);
position: absolute;
top: 0;
left: 0;
display:...