正在加载视频...

视频加载失败

Animated exclusive accordions with CSS 😎 ::details-content { transition: content-visibility, height; transition-behavior: allow-discrete; } [open]::details-content { height: calc-size(auto); } Exclusive On the way! 🫶

216,567 次观看 • 2 年前 •via X (Twitter)

10 条评论

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

Here's the @CodePen 🤙 You can see it work in Chrome Beta. Not sure if there's a bug in Chrome Canary atm 🥲

apuestokid 的头像
apuestokid2 年前

Look at this. more simple, more supported:

Fredrik Tibbling 的头像
Fredrik Tibbling2 年前

It’a a keeper! ✨

Sam Gilbert 的头像
Sam Gilbert2 年前

i have bookmarked way too many of these 🔥

Engels Prado 的头像
Engels Prado2 年前

Looking at your posts about css, I realized that I know nothing about css 🤣.

thatguyjk 🕵🏾‍ 的头像
thatguyjk 🕵🏾‍2 年前

Are you using chrome canary?

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

Chrome BETA. There seems to be an issue in Chrome Canary where ::details-content styling isn't being applied for some reason 🤔

D7460N 的头像
D7460N2 年前

Finally!

Umair 的头像
Umair2 年前

calc-size(auto); how its works

Scott Kaye 的头像
Scott Kaye2 年前

killer, always killer, nice stuff!

相关视频