Как сделать раскрытие текста в блоке CL10 в Tilda
Concept
Visual communication takes place through pictures, graphs and charts, as well as through signs, signals, and symbols. It may be used either independently or as an adjunct to other methods.
Learn More
Research
Symbolization is an important definition for this perspective. Cultural perspective involves identity of symbols. The use of words that are related to the image, the use of characters, etc. is the symbolization of the image.
Learn More
Marketing
The view of images in the critical perspective is when the viewers criticize the images, and the critiques have been made in the interest of the society, although it’s an individual perspective nevertheless.
Learn More

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

1
Добавили на страницу блок CL10
2
Ссылки для кнопок задали в коде, а не в самом блоке
3
Добавили оба кода на страницу в блок ДРУГОЕ►Т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;
}

.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>
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