JSFiddle - React, Tailwind, and code Playground

by panchroma

HTML

<div class="row portfolio-images">
      	<ul class="enlarge2">
      		<div class="span1">
				<li><img src="http://www.weiserlock.com/images/products/c_smartcode_lever_inner_11p.jpg" style="width:50px;height:200px;"/ ><span>Antique Nickel<img 						src="http://www.weiserlock.com/images/products/c_smartcode_lever_inner_11p.jpg"/><br /></span></li></div> 
           
      </ul>
</div>

CSS

ul.enlarge2{
list-style-type:none; /*remove the bullet point*/
margin-left:0;

}
ul.enlarge2 li{
display:inline-block; /*places the images in a line*/
position: relative;
z-index: 0; /*resets the stack order of the list items - later we'll increase this*/
margin:5px 10px 0 10px;

}
ul.enlarge2 img{
background-color:#eae9d4;
padding: 6px;
-webkit-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
-moz-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
box-shadow: 0 0 6px rgba(132, 132, 132, .75);
-webkit-border-radius: 4px; 
-moz-border-radius: 4px; 
border-radius: 4px; 


}
ul.enlarge2 span{
position:absolute;
width:100px;    
    height:auto;
left: -9999px;
background-color:white;
padding: 10px;
font-family: 'Droid Sans', sans-serif;
font-size:.9em;
text-align: center; 
color: transparent; 
-webkit-box-shadow: 0 0 20px rgba(0,0,0, .75));
-moz-box-shadow: 0 0 20px rgba(0,0,0, .75);
box-shadow: 0 0 20px rgba(0,0,0, .75);
-webkit-border-radius: 8px; 
-moz-border-radius: 8px; 
border-radius:8px;
}
ul.enlarge2 li:hover{
z-index: 150;
cursor:pointer;

}
ul.enlarge2 span img{

padding:2px;
background:#ccc;
}
ul.enlarge2 li:hover span{ 
top: 100px; /*the distance from the bottom of the thumbnail to the top of the popup image*/
left: 0px; /*distance from the left of the thumbnail to the left of the popup image*/

}
ul.enlarge2 li:hover:nth-child(2) span{
left: -200px; 
}
ul.enlarge2 li:hover:nth-child(3) span{
left: -200px; 
}
ul.enlarge2 img, ul.enlarge span{
behavior: url(pie/PIE.htc); 
}