Hello. There are several such blocks.
$(".btn_more1").click(function() { $(this).prev("div.ctn_more1").slideToggle("slow"); }); .ctn_more1 { height: 40px; overflow: hidden; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="ctn_more1">1</div> <button class="btn_more1">Подробнее</button></div> <div class="ctn_more1">2</div> <button class="btn_more1">Подробнее2</button></div> Those. its maximum height is 40px, when you press the button it should open down to its full height. But it closes and opens only on these 40 px. How to make, that would fulfill on all height. Plus, the question is how to make it so that in the block the last line seemed to disappear slowly? And then the text is clearly broken, which is not very beautiful.