Description
Quite the opposite of #27, I'm currently using slide-element to animate height on an element that already has a height.
The use case is a "read more" where the content is partially hidden behind a gradient and expand when you click on the "read more" button, something like this: https://css-tricks.com/text-fade-read-more/
It worked perfectly using line-clamp
CSS property. Thing is, the hidden content is huge and it doesn't play well on mobile. So I'm switched to a CSS height property, to set the initial height (not 0
) but now slide-element
doesn't like it since the animation results in a X
-> X
animation (where X remains the same, so animation is visible). This is a perfectly normal behaviour but I would like to know if you would be interested in supporting such feature in core?
I set up a quick fix on a fork: master...nlemoine:slide-element:master#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
Let me know if you're interested in implementing this.