I have a paragraph set with the following style:
.design_info_box p.design_info_desc
{
height:30px;
text-overflow: ellipsis;
overflow:hidden;
}
At the same time, you can see the first 2 lines of text using the "read more" button, which extends the paragraph to show the rest of the text.
Here is the button code:
$(".read-more div").click(function(){
$(this).parent().parent().children("p").removeClass("design_info_desc", "slow");
$(this).hide();
});
This removes the class and the entire paragraph expands. However, it does not revive. According to the docs, removeClass should have an animation duration. I also tried replacing "slow" with a number like 10000.
Is there a reason why she does not revive?
source
share