<html>
<body>
<div class="accordion">
<ul>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Studio Lighting</h2>
<p>Lighting<br> Light Modifiers<br> Light Controls<br> Backdrops
</p>
</a>
</div>
</li>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Filmmaking Gear</h2>
<p>LED Lighting<br> Scrim Jim Cine<br> Chroma-Key
</p>
</a>
</div>
</li>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Speedlight Modifiers</h2>
<p>Apollo<br> LunaGrip
<br> Rapid Box</p>
</a>
</div>
</li>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Travel Photography</h2>
<p>Rapid Box<br> Reflectors
<br> Cases
</p>
</a>
</div>
</li>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Newborn Photography</h2>
<p>Props<br> Backdrops
<br> Lighting
</p>
</a>
</div>
</li>
<li>
<div>
<a href="#" class="sliderLink">
<h2>Photo Enthusiast</h2>
<p>CFL Lighting<br> Reflectors
<br> Backdrops
</p>
</a>
</div>
</li>
</ul>
</div>
</body>
</html>
body {
background-color: black;
}
.accordion {
width: 100%;
height: 350px;
overflow: hidden;
margin: 0px auto;
}
.accordion ul {
width: 100%;
display: table;
table-layout: fixed;
margin: 0;
padding: 0;
}
.accordion ul li {
display: table-cell;
vertical-align: bottom;
position: relative;
width: 16.666%;
height: 350px;
background-repeat: no-repeat;
background-position: center center;
transition: all 500ms ease-in-out;
}
.accordion ul li div {
display: block;
overflow: hidden;
width: 100%;
}
.accordion ul li div a {
display: block;
height: 350px;
width: 100%;
position: relative;
z-index: 3;
vertical-align: bottom;
padding: 15px 20px;
box-sizing: border-box;
color: #fff;
text-shadow: 1px 1px 2px #000;
/*filter: invert(100%);*/
text-decoration: none;
font-family: Open Sans, sans-serif;
transition: all 300ms ease-in-out;
}
.accordion ul li div a * {
opacity: 0;
margin: 0;
width: 100%;
text-overflow: ellipsis;
position: relative;
z-index: 5;
white-space: nowrap;
overflow: hidden;
-webkit-transform: translateX(-20px);
transform: translateX(-20px);
-webkit-transition: all 400ms ease-in-out;
transition: all 400ms ease-in-out;
}
.accordion ul li div a h2 {
font-family: Montserrat, sans-serif;
text-overflow: clip;
font-size: 32px;
text-transform: uppercase;
margin-bottom: 2px;
top: 160px;
}
.accordion ul li div a p {
top: 160px;
font-size: 18px;
padding-left: 1em;
}
.accordion ul li:nth-child(1) {
background-image: url("https://loremflickr.com/640/480/studio?random=1");
background-position: 50% 30%;
}
.accordion ul li:nth-child(2) {
background-image: url("https://loremflickr.com/640/480/country?random=2");
background-position: 70% 0%;
}
.accordion ul li:nth-child(3) {
background-image: url("https://loremflickr.com/640/480/city?random=3");
background-position: 50% 50%;
}
.accordion ul li:nth-child(4) {
background-image: url("https://loremflickr.com/640/480/sports?random=4");
background-position: 30% 40%;
}
.accordion ul li:nth-child(5) {
background-image: url("https://loremflickr.com/640/480/travel?random=5");
background-position: 60% 64%;
}
.accordion ul li:nth-child(6) {
background-image: url("https://loremflickr.com/640/480/food?random=6");
background-position: 70% 25%;
}
.accordion ul li { background-size: cover; }
.accordion ul:hover li { width: 10%; }
.accordion ul:hover li:hover { width: 90%; }
/*.accordion ul:hover li:hover a { background: rgba(0, 0, 0, 0.4); }*/
.accordion ul:hover li:hover a * {
opacity: 1;
-webkit-transform: translateX(0);
transform: translateX(0);
}
@media screen and (max-width: 680px) {
body { margin: 0; }
.accordion { height: auto; }
.accordion ul li,
.accordion ul li:hover,
.accordion ul:hover li,
.accordion ul:hover li:hover {
position: relative;
display: table;
table-layout: fixed;
width: 100%;
-webkit-transition: none;
transition: none;
}
.accordion ul li div a * {
opacity: 1;
-webkit-transform: translateX(0);
transform: translateX(0);
}
}