Skip navigation
CSS can FINALLY animate height: auto!
0:00 / 0:56

CSS can FINALLY animate height: auto!

Wes Bos

@wesbos448K followers

Visit on X
5,465 likesDownloadOriginal post

323,759 views

CSS can FINALLY animate height: auto!

10 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    Related 🤙

    67 likes

  • hārmañ's profile picture

    @harmanwardani

    Next: animate display none

    24 likes

  • Wes Bos's profile picture

    @wesbos

    Already possible! starting-style does this:

    48 likes

  • Julian Domke's profile picture

    @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

  • jeffscottworld (🛠️, 🤖, 🏡 )'s profile picture

    @jeffscottward

    Holy hell lol I don’t even believe it

    9 likes

  • Hunter Becton's profile picture

    @HunterBecton

    What's causing the bounce at the end of the animation?

    5 likes

  • Wes Bos's profile picture

    @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's profile picture

    @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's profile picture

    @ProEvilz

    we have been waiting for this every since $.slideDown()

    2 likes

  • Avi Cohen Nehemia's profile picture

    @AviCohenNehemia

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

    2 likes