Как сделать раскрытие текста в блоке TM201 в Tilda
Who we are
The smartest people work every day to provide the best service and to make our clients happy
Max Holden
Founder & Art Director
Max invented our company. He is the father of our main goals and values. He has founded first core members of our team and helped them to show their unique talents in work process.
Lucy Good
Design Director
Julia takes care of everything you can see. She spent five years in London learning visual communication. She uses her knowledge to make the world a little more beautiful.
Eva Stark
Customers Support
Eva is the voice of our brand. She spends hours to make our clients feel care and enjoy communication with the company. If you have any suggestions or ideas you can write her.

Как сделать уменьшенные боковые слайды в GL20 в Tilda

1
Создали блок TM201 и заполнили его кратким текстом
2
Раскрывающийся текст поместили в первый код
3
Добавили коды в блок Другое - Т123
Библиотека для примера
<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>
  • First
  • Second
  • Third
  • Fourth

Подробнее

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.

Подробнее

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.

Подробнее

Made on
Tilda