Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<div class="cp_accordionslide06">
<div class="slideitem">
<div class="slidecont">
<h2>タイトル 1</h2>
<div class="text">
<p>テキスト 1</p>
</div>
</div>
</div>
<div class="slideitem">
<div class="slidecont">
<h2>タイトル 2</h2>
<div class="text">
<p>テキスト 2</p>
</div>
</div>
</div>
<div class="slideitem">
<div class="slidecont">
<h2>タイトル 3</h2>
<div class="text">
<p>テキスト 3</p>
</div>
</div>
</div>
<div class="slideitem">
<div class="slidecont">
<h2>タイトル 4</h2>
<div class="text">
<p>テキスト 4</p>
</div>
</div>
</div>
<div class="slideitem">
<div class="slidecont">
<h2>タイトル 5</h2>
<div class="text">
<p>テキスト 5</p>
</div>
</div>
</div>
</div>
.cp_accordionslide06 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
visibility: hidden;
width: 100%;
height: 60vh;
}
.cp_accordionslide06 .slideitem {
position: relative;
visibility: visible;
overflow: hidden;
width: 20%;
height: 100%;
cursor: pointer;
-webkit-transition: all 0.3s linear 0s;
transition: all 0.3s linear 0s;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
.cp_accordionslide06 .slideitem:nth-child(1) {
background-image: url('img/sample6.jpg');
}
.cp_accordionslide06 .slideitem:nth-child(2) {
background-image: url('img/sample7.jpg');
}
.cp_accordionslide06 .slideitem:nth-child(3) {
background-image: url('img/sample8.jpg');
}
.cp_accordionslide06 .slideitem:nth-child(4) {
background-image: url('img/sample9.jpg');
}
.cp_accordionslide06 .slideitem:nth-child(5) {
background-image: url('img/sample10.jpg');
}
.cp_accordionslide06 .slideitem:after {
position: absolute;
z-index: 2;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
content: '';
opacity: 0;
background-color: rgba(255,204,128 ,0.6);
}
.cp_accordionslide06:hover .slideitem:hover:after {
visibility: visible;
-webkit-transition: all 0.2s linear 0.4s;
transition: all 0.2s linear 0.4s;
opacity: 1;
}
.cp_accordionslide06:hover .slideitem:hover {
width: 60%;
}
.cp_accordionslide06 .slideitem .slidecont {
position: absolute;
z-index: 4;
bottom: 60px;
left: 30px;
visibility: hidden;
max-width: 400px;
padding: 20px;
-webkit-transform: scale(0.85);
transform: scale(0.85);
color: #ffffff;
border-radius: 5px;
background-color: rgba(239,108,0 ,0.6);
}
.cp_accordionslide06 .slideitem .slidecont h2 {
font-size: 1.4em;
}
.cp_accordionslide06:hover .slideitem:hover .slidecont {
visibility: visible;
-webkit-transition: all 0.2s linear 0.7s;
transition: all 0.2s linear 0.7s;
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
@media only screen and (max-width:768px) {
.cp_accordionslide06 {
height: 80vh;
}
.cp_accordionslide06 .slideitem .slidecont h2 {
font-size: 0.9em;
}
.cp_accordionslide06 .slideitem .slidecont p {
font-size: 0.7em;
}
.cp_accordionslide06 .slideitem .slidecont {
right: 10px;
bottom: 10px;
left: 10px;
}
.cp_accordionslide06:hover .slideitem:hover .slidecont {
left: 10px;
}
}