CSS can FINALLY animate height: auto!
@wesbos448K followers
323,759 views
10 Comments
Comments from the original post on X (Twitter)

@jh3yy
Related 🤙
67 likes

@harmanwardani
Next: animate display none
24 likes

@wesbos
Already possible! starting-style does this:
48 likes

@juleswritescode
whoever works on css should get 10 raises. frontend frameworks get more and more complicated, css just gets more useful. thanks for keeping us informed! 🥳
11 likes

@jeffscottward
Holy hell lol I don’t even believe it
9 likes

@HunterBecton
What's causing the bounce at the end of the animation?
5 likes

@wesbos
custom bezier curve that goes past 1, so it bounces back. transition: height 0.5s cubic-bezier(1, 0.63, 0.25, 1.5);
23 likes

@cyrus_zei
Yes !! Here we go!! I can finally make accordions that actually look like they where made in 2024 and not 1990 called and wanted their accordion back 😂
3 likes

@ProEvilz
we have been waiting for this every since $.slideDown()
2 likes

@AviCohenNehemia
Wasn't this already possible for a while now? @KevinJPowell covered something similar a year ago
2 likes