<div class="showtext0 wraptext">
<div>
<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
</ul>
</div>
<p class="textbtn">Подробнее</p>
</div>
<div class="showtext1 wraptext">
<div>
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.
</div>
<p class="textbtn">Подробнее</p>
</div>
<div class="showtext2 wraptext">
<div>
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.
</div>
<p class="textbtn">Подробнее</p>
</div>
<style>
.t527__itemwrapper {
position: relative;
}
.t527__itemwrapper:before {
position: absolute;
font-size: 110px;
top: -155px;
left: -5px;
font-family: 'Open Sans',Arial,sans-serif;
font-weight: 800;
color: #888a0f;
transition: all 1.0s ease-in-out;
}
.colmore .t527__itemwrapper:before {
top: -50px;
opacity:0.2;
transition: all 1.0s ease-in-out;
}
.t527__col:nth-child(1) .t527__itemwrapper:before{content: "1"}
.t527__col:nth-child(2) .t527__itemwrapper:before{content: "2"}
.t527__col:nth-child(3) .t527__itemwrapper:before{content: "3"}
.wraptext div:first-child{
display:none;
}
.wraptext ul {
margin: 0;
}
.wraptext p:last-child {
margin-top: 10px;
font-weight: 600;
cursor: pointer;
}
.wraptext p:last-child:after {
content: " \2192";
}
.t527__col {
padding-top: 120px;
transition: all 0.3s ease-in-out;
}
.t527__col:hover {
}
.t120__title:before {
content: "";
width: 50px;
height: 4px;
background-color: #888a0f;
position: absolute;
margin-top: -18px;
}
</style>
<script>
$( document ).ready(function() {
$('.showtext0').appendTo('.t527__perstext:eq(0)');
$('.showtext1').appendTo('.t527__perstext:eq(1)');
$('.showtext2').appendTo('.t527__perstext:eq(2)');
$('.textbtn').click(function() {
var text = $(this).text();$(this).text(text == "Подробнее" ? "Скрыть" : "Подробнее");
$(this).siblings('div').slideToggle(1000);$(this).closest('.t527__col').toggleClass('colmore');
});});
</script>
Подробнее
Подробнее
Подробнее