vaakash / jquery-collapser

jQuery collapser is a small and useful jQuery plugin for collapsing/truncating an element text by words, characters and lines with a flexible API. It is an all in one plugin with multiple functionalities to truncate a paragraph or any element as desired.
MIT License
99 stars 35 forks source link

Closing animation #2

Open magglomag opened 9 years ago

magglomag commented 9 years ago

Thanks for the great plugin!

I really like the smooth slide down animation when expanding the text and was wondering if there’s a way to also add a smooth slide up animation when hiding the text again.

Thanks in advance!

vaakash commented 9 years ago

Hi magglomag, this happens because the height of the element after collapse is unknown. It is possible to predict the height after collapse, I'll make a fix whenever possible.

MichaelStaples commented 3 years ago

Hi vaakash, Love your little plugin, it has saved me an hour or so of time. I also like the slide down animation and would love to see a similar slide up animation if possible. Thanks.