JSFiddle - React, Tailwind, and code Playground

by Oliver_kh

HTML

<div id="outer">
    <ul id="inner">
        <a class="title" href="">LG Google Nexus 5 16Gb (Black)</a>
       <h2 class="price">17990 руб.</h2>

        <a class="buttom" href=""><span>Купить</span></a>
        
        <a><img  class="rating" src="images/ratings-bg.png"> </a>
        <a class="comment"  href=""> 34 отзива </a> 
          

        <a href=""><img class="img" src ="http://likegsm.ua/media/upload/shop/1/big/17839.jpg "></a>
<p> Экран 4.95" (1920 x 1080) Full HD IPS, Multitouch / моноблок / Qualcomm Snapdragon 800 (2.3 ГГц) / камера основная: 8 Мп, фронтальная: 1.3 Мп / Bluetooth 4.0 / Wi-Fi 802.11 a/b/g/n/ac / NFC / GPS / A-GPS / 16 ГБ встроенной памяти / разъем 3.5 мм / 3G / 4G / ОС Android 4.4 (KitKat) / 69.17 x 137.84 x 8.59 мм, 130 г / черный </p>
        
    
</ul>
</div>

CSS

#outer {
    overflow:hidden;
    position: relative;
    z-index: 5;
    float: left;
    width: 365px;
    height: 350px;
}

/* Вот эта линия */
#outer:before {
    content: '';
    display: block;
    height: 40px;
    position: absolute;
    top: 230px;    
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,0)), color-stop(0.8, rgba(255,255,255,1)), to(rgba(255,255,255,1)));
background: -webkit-linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
background: -moz-linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
background: -o-linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
}
#outer:hover:before {
 background:transparent;   
}

#inner {
    width: 350px;
    height: 255px;
    margin-left: 2px;
    margin-top: 2px;
    margin-bottom: 50px;
    float: left;
    background: #fff;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    overflow: hidden;
}





#inner p {
    margin-left: 115px;
    margin-top: 190px;
    font: 12px Arial, sans-serif;
}

#outer:hover #inner {
    height: auto;
    width: 350px;
    padding-left: 5px;
    padding-right: 5px;
    float: left;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.6);
    border-radius: 5px
    z-index: 5;
    background: -webkit-linear-gradient(top, #fff 0%,#fff 60%,#f2f2f2 95%,#fff 100%);
    position: absolute;


}

.title {
    margin-top: 5px;
    margin-left: 5px;   
    font: bold 18px sans-serif;
    color: #0A83AB;
    text-decoration: none;   
    position: absolute;
}
.title:hover {
    text-decoration: underline;
    
}


.price{ 
    margin-left: 120px;
    margin-top: 75px;
    float: left;
    font: bold 22px sans-serif;
    position: absolute;
}
.rating {
    height:...