JSFiddle - React, Tailwind, and code Playground

by dirkk0

HTML

<!-- We will make a simple accordian with hover effects 
The markup will have a list with images and the titles-->
<div class="accordian">
	<ul>
		<li>
			<div class="image_title">
				
			</div>
			 <a href="http://www.jeasyui.com/tutorial/dd/dnd3.php" target=_blank>
				<img src="http://www.iajpr.com/admin/uploaddir/GCLIKIAJPR.gif"/>
			</a>
			</a>
		</li>
		<li>
			<div class="image_title">
				<a href="#">Hey, ich bin ein Profi</a>
			</div>
            <a href=".../etwas.png">
				<img src="http://thecodeplayer.com/uploads/media/2rT2vdx.jpg"/>
			</a>
		</li>
		<li>
			<div class="image_title">
				<a href="#">Zu meinem Stundenplan</a>
			</div>
			<a href="http://jsfiddle.net/dirkk0/6xbysnjs/18/show/">
				<img src="http://hd.wallpaperswide.com/thumbs/smiley_face_background-t2.jpg"/>
			</a>
		</li>
	</ul>
</div>

 <!--End menu-->
<section id="section">
	<html lang="en">

CSS

.accordian li {
	position: relative;
	display: block;
	width: 160px;
	float: left;
	
	border-left: 1px solid #888;
	
	box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.5);
	
	/*Transitions to give animation effect*/
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	/*If you hover on the images now you should be able to 
	see the basic accordian*/
}

/*Reduce with of un-hovered elements*/
.accordian ul:hover li {width: 40px;}
/*Lets apply hover effects now*/
/*The LI hover style should override the UL hover style*/
.accordian ul li:hover {width: 640px;}


.accordian li img {
	display: block;
}

/*Image title styles*/
.image_title {
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
	left: 0; bottom: 0;	
width: 640px;	

}
.image_title a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 20px;
	font-size: 16px;
}

  div {
    width: 300px;
    float: left;
    padding: 2px;
    margin: 3px;
    background-color: #722dh8;
  }

footer { 
    display: block;
}