Table CSS -> maurice et justine
HTML
<div id="accordion">
<div class="wrap">
<p>Maurice</p>
</div>
<div class="wrap">
<p>Justine</p>
</div>
<div class="wrap">
<p>Harold</p>
</div>
<div class="wrap">
<p>Maude</p>
</div>
<div class="wrap">
<p>Claude</p>
</div>
</div>
CSS
#accordion{
width:100%;
height:190px;
background:#333;
display:table;
table-layout:fixed;
}
#accordion div{
display:table-cell;
position:relative;
width:50px;
vertical-align:middle;
text-align:center;
background:rgba(0,0,0,.3);
border-left:1px solid white;
-webkit-transition:all .3s ease;
overflow:hidden;
}
#accordion div:nth-child(1){
background:url('http://lorempixel.com/400/200/people/3') top left;
}
#accordion div:nth-child(2){
background:url('http://lorempixel.com/400/200/people/1') top right;
}
#accordion div:hover{
width:200px;
}
#accordion div h3{
-webkit-transform:rotate(90deg);
}
#accordion div.wrap p{
position:absolute;
opacity:0;
top:-30px;
left:200px;
-webkit-transition:all 0.2s ease;
color:white;
text-shadow:0 0 0 rgba(0,0,0,.5);
font-size:1.6em;
padding:10px;
background:rgba(0,0,0,.7);
}
#accordion div.wrap:last-child p{
right:200px;
left:auto;
}
#accordion div.wrap:hover p{
top:30px;
opacity:1;
-webkit-transition:all 0.3s ease-in-out .3s;
}