re: How to animate an auto-height element VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I also faced this problem writing my accordion library (github.com/oncode/handorgel). I solved it by using an inner div and animating the height of...
 

That's a great idea! Would that mean that you can add content to the inner div while the outer div is collapsed?

 

Exactly, you can add the content while it's collapsed and it will open to the correct height.

that's fantastic. I'm gonna try that out! Thanks!

code of conduct - report abuse