Как сделать раскрытие текста в блоке CL10 в Tilda

Как сделать раскрытие текста в блоке CL10 в Tilda

1
Добавили на страницу блок CL10
2
Добавили оба кода на страницу в блок ДРУГОЕ►Т123
В первом коде заполнили текст для каждой колонки
Mo-ti Level Up
Видео инструкции по добавлению кода и работе с Zero Block.
Создаём раскрывающийся текст в блоке CL10.
Форматируем и стилизуем элементы выпадающего текста. Длительность видео: 37 минут
Фрагмент видео
Библиотека для примера

<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;
}
</style>

<script>
$( document ).ready(function() {
$('.showtext0').appendTo('.t1032__descr:eq(0)');
$('.showtext1').appendTo('.t1032__descr:eq(1)');
$('.showtext2').appendTo('.t1032__descr:eq(2)');
$('.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>
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.

Подробнее

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.

Подробнее

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.

Подробнее

Concept
Research
Marketing
Made on
Tilda