JSFiddle - React, Tailwind, and code Playground

by adishardis

HTML

<div class="main">
       <div class='view view-tenth' >
           <img src="http://hardis.synology.me/portalen/img/1.png" wIdth="150" height="120" style="position: absolute;">
                <div style="background:black; opacity:0.6; width:200px; height:30px;"></div>
                <img src="http://hardis.synology.me/portalen/img/stars/STARS2/3/2.png" style="position: absolute;  top: 5px; left: 3px;width:90px;z-index:1111;"> <H6 style="font-size:11px;color:white;position: absolute;top: 9px; left: 106px;z-index:3311;">Jul,2012</H6>
                    <div class='mask'>
                        <h2 style="text-transform: uppercase;color: #333;width:120px;text-align: center;position: relative;font-size: 15px;border-bottom: 1px solid rgba(0, 0, 0, 0.3);background: transparent;margin: 0px 10px;padding: 5px;">NAME</h2>
                        <p>Kanal: <b> XXYY</b></p>
                        <p>förflyttning: <br \><b>6 enheter</b> </p>
                        <a class='info' href='http://adam.synology.me/portalen/main.php?id=3&scroll=8'>Gå vidare</a>
                    </div>
        </div><div class='view view-tenth' ><img src="foretag/Effectris/Presentationer/Effectris/MCI 93/enheter/1.png" wIdth="150" height="120" style="position: absolute;">
                <div style="background:black;opacity:0.6;width:200px;height:30px;"></div>
                <img src="http://hardis.synology.me/portalen/img/stars/STARS2/3/4.png" style="position: absolute;  top: 5px; left: 3px;width:90px;z-index:1111;"> <H6 style="font-size:11px;color:white;position: absolute;top: 9px; left: 106px;z-index:3311;">Oct,2012</H6>
                    <div class='mask'>
                        <h2 style="text-transform: uppercase;color: #333;width:120px;text-align: center;position: relative;font-size: 15px;border-bottom: 1px solid rgba(0, 0, 0, 0.3);background: transparent;margin: 0px 10px;padding: 5px;">NAME</h2>
                        <p>Kanal: <b> XXYY</b></p>
                       ...

CSS

.main{
    position:relative;
    margin: 0 auto;
    width:500px;
    height:180px;
    overflow-x:scroll;
    overflow-y:hidden;
    white-space: nowrap;
 
}
.view {
width: 150px;
height: 120px;
margin: 10px;
display: inline-block;
border: 10px solid grey;
overflow: hidden;
position: relative;
text-align: center;
-webkit-box-shadow: 1px 1px 2px #E6E6E6;
-moz-box-shadow: 1px 1px 2px #e6e6e6;
box-shadow: 1px 1px 2px #E6E6E6;
cursor: default;
background: white url(../images/bgimg.jpg) no-repeat center center;
}
.view .mask,.view .content {
   width: 150px;
   height: 120px;
   position: absolute;
   overflow: hidden;
   top: 0;
   left: 0;
}
.view img {
   display: block;
   position: relative;
}
.view h2 {
   text-transform: uppercase;
   color: #fff;
   text-align: center;
   position: relative;
   font-size: 17px;
   padding: 10px;
   background: rgba(0, 0, 0, 0.8);
   margin: 20px 0 0 0;
}
.view p {
   font-family: Georgia, serif;
   font-style: italic;
   font-size: 12px;
   position: relative;
   color: #fff;
   padding: 5px 5px 5px;
   text-align: center;
}
.view a.info {
   display: inline-block;
   text-decoration: none;
   padding: 7px 14px;
   background: #000;
   color: #fff;
   text-transform: uppercase;
   -webkit-box-shadow: 0 0 1px #000;
   -moz-box-shadow: 0 0 1px #000;
   box-shadow: 0 0 1px #000;
}
.view a.info: hover {
   -webkit-box-shadow: 0 0 5px #000;
   -moz-box-shadow: 0 0 5px #000;
   box-shadow: 0 0 5px #000;
}
/*--------------ZOOM STYLE-------------*/
.view-tenth img {
   -webkit-transform: scaleY(1);
   -moz-transform: scaleY(1);
   -o-transform: scaleY(1);
   -ms-transform: scaleY(1);
   transform: scaleY(1);
   -webkit-transition: all 0.7s ease-in-out;
   -moz-transition: all 0.7s ease-in-out;
   -o-transition: all 0.7s ease-in-out;
   -ms-transition: all 0.7s ease-in-out;
   transition: all 0.7s ease-in-out;
}
.view-tenth .mask {
   -webkit-transition: all 0.5s linear;
   -moz-transition: all 0.5s linear;
   -o-transition: all 0.5s...