<div class="showtext0 wraptext">
<div class="contentgl10">
First part: 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="showtext1 wraptext">
<div class="contentgl10">
Second part: 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 class="contentgl10">
Third part: 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>
.t1032__content {
height: 100%;/* 100% высота одинаковая, auto - высота разная*/
box-shadow: 10px -10px 0px #b9b9b9;
transition: all 0.3s ease-in-out;
}
.t1032 .t-container {
display: flex;
flex-wrap: wrap;
}
.t1032__wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.t1032__buttonwrapper {
margin-top: auto;
}
.wraptext div:first-child{
display:none;
}
.wraptext .textbtn:last-child {
margin-top: 10px;
font-weight: 400;
cursor: pointer;
}
.wraptext .textbtn:last-child:after {
content: " \2192";
}
.colmore .wraptext .textbtn:last-child:after {
content: " \2191";
}
.t1032__wrapper {
height: 100% !important;
}
.t1032__descr {
height: auto !important;
}
.t1032__col>a {
cursor: default;
}
.t1032 .t-card__descr {
height: auto !important;
}
</style>
<script>
$( document ).ready(function() {
$('.showtext0').appendTo('.t1032 .t-card__descr:eq(0)');
$('.showtext1').appendTo('.t1032 .t-card__descr:eq(1)');
$('.showtext2').appendTo('.t1032 .t-card__descr:eq(2)');
setTimeout(function(){
$('.t1032__buttonwrapper:eq(0)>a').attr('href', '#popup:subscribe1');
$('.t1032__buttonwrapper:eq(1)>a').attr('href', '#popup:subscribe2');
$('.t1032__buttonwrapper:eq(2)>a').attr('href', '#popup:subscribe3');
}, 1500);
$('.textbtn').click(function() {
var text = $(this).text();$(this).text(text == "Подробнее" ? "Скрыть" : "Подробнее");
$(this).siblings('div').slideToggle(700);$(this).closest('.t1032__col').toggleClass('colmore');
});
$('.t1032__col').each(function( index ) {
let cardurl = $(this).children('a').attr('href');
$(this).find('.t-btn').wrap('<a href="'+cardurl+'"></a>');
$(this).children('a').removeAttr('href');
});
});
</script>
Подробнее
Подробнее
Подробнее