Код:
<!--HTML-->
<style>
@import 'https://fonts.googleapis.com/css?family=Shadows+Into+Light';
body {
background: url('pattern.gif');
padding: 0; margin: 0;
}
#image-expand {
width: 750px;
margin: 0px auto;
position: relative;
}
#image-expand div {
float: left;
position: relative;
}
#image-expand div .content {
position: absolute;
top: 0;
left: 0;
width: 50px;
height: 262px;
z-index: -1;
box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
overflow: hidden;
z-index: 500;
}
#image-expand div label {
width: 50px;
height: 262px;
display: block;
background: #f6f6f6;
box-shadow: inset -25px 0px 30px -10px rgba(0,0,0,0.05);
cursor: pointer;
border-right: 1px solid #ddd;
color: #222;
overflow: hidden;
position: relative;
z-index: 1000;
}
#image-expand div label span {
width: 50px;
display: block;
position: relative;
top: 85px;
left: -20px;
font-family: 'Shadows Into Light', cursive;
font-size: 30px;
line-height: 25px;
text-align: center;
margin: 5px;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
}
#image-expand input[type=radio] {
opacity: 0;
}
#image-expand input:checked ~ .content {
width: 500px;
overflow: hidden;
margin-left: 100px;
border-right: 1px solid #ddd;
}
#image-expand .content, #image-expand label, #image-expand input {
-webkit-transition: all 0.1s ease-in;
-moz-transition: all 0.1s ease-in;
-o-transition: all 0.1s ease-in;
-ms-transition: all 0.1s ease-in;
}
#image-expand label:hover ~ input:checked + .content {
width: 250px;
}
#image-expand label:hover ~ .content {
width: 50px;
}
#image-expand label:hover {
margin-right: 10px;
}
#image-expand input:checked {
margin-right: 587px;
}
.content .read-more {
position: absolute;
bottom: 30px;
right: 40px;
text-decoration: none;
padding: 10px 20px;
font-family: Arial, sans-serif;
text-transform: uppercase;
box-shadow: 0px 4px 6px #132732, 0px 4px 0px #1d3846, inset 0px 15px 30px -10px rgba(255,255,255,0.2);
background: #4e96ba;
border-radius: 4px;
font-weight: bold;
color: #fff;
}
.content .read-more:active {
box-shadow: 0px 2px 0px #1d3846, inset 0px 15px 30px -10px rgba(255,255,255,0.2);
bottom: 28px;
}
</style>
<div id="image-expand">
<div>
<label for="button-1"><span> <b>SPIDERMAN</b><br>
vs.<br>
<b>ANT-MAN</b></span></label>
<input id="button-1" name="button-set" type="radio" checked />
<div class="content">
<img src="" alt="" /><img src="" alt="" /><br>
<img src="" alt="" /><img src="" alt="" />
</div>
</div>
<div>
<label for="button-2"><span>after the events<br>
of Civil War</span></label>
<input id="button-2" name="button-set" type="radio" />
<div class="content">
<img src="" alt="" /><img src="" alt="" /><br>
<img src="" alt="" /><img src="" alt="" />
</div>
</div>
<div>
<label for="button-3"><span>in the doorway<br>of New York</span></label>
<input id="button-3" name="button-set" type="radio" />
<div class="content">
<img src="" alt="" /><img src="" alt="" /><br>
<img src="" alt="" /><img src="" alt="" />
</div>
</div>
</div>