正在加载视频...

视频加载失败

CSS can FINALLY animate height: auto!

323,239 次观看 • 1 年前 •via X (Twitter)

10 条评论

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

Related 🤙

hārmañ 的头像
hārmañ1 年前

Next: animate display none

Wes Bos 的头像
Wes Bos1 年前

Already possible! starting-style does this:

Julian Domke 的头像
Julian Domke1 年前

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! 🥳

jeffscottworld (🛠️, 🤖, 🏡 ) 的头像
jeffscottworld (🛠️, 🤖, 🏡 )1 年前

Holy hell lol I don’t even believe it

Hunter Becton 的头像
Hunter Becton1 年前

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

Wes Bos 的头像
Wes Bos1 年前

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

Cyrus Zei 的头像
Cyrus Zei1 年前

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 😂

ProEvilz 的头像
ProEvilz1 年前

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

Avi Cohen Nehemia 的头像
Avi Cohen Nehemia1 年前

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

相关视频