Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

👀 An early look at transitioning to and from `display: none` in CSS 👀

269,230 görüntüleme • 3 yıl önce •via X (Twitter)

11 Yorum

Una 🇺🇦 profil fotoğrafı
Una 🇺🇦3 yıl önce

Youtube link if you prefer:

Maximilien Monteil 🇵🇸 profil fotoğrafı
Maximilien Monteil 🇵🇸3 yıl önce

This is amazing! Would it include animating smth like height to and from `auto`?

Una 🇺🇦 profil fotoğrafı
Una 🇺🇦3 yıl önce

Unfortunately no, not yet at least

trash profil fotoğrafı
trash3 yıl önce

finally

Kent C. Dodds 🌌 profil fotoğrafı
Kent C. Dodds 🌌3 yıl önce

Solving real problems over here 🔥

Jeuri profil fotoğrafı
Jeuri3 yıl önce

This is awesome. So happy this is going to be a thing.

Z 🏴‍☠️ profil fotoğrafı
Z 🏴‍☠️3 yıl önce

Oooh

François REMY profil fotoğrafı
François REMY3 yıl önce

Duplicating your styles in @ initial sounds awkward and error-prone. I would rather have the browser compute the styles even when hidden if display is in the transitionable properties or in will-chage: display.

Enrico Gruner 🔥 profil fotoğrafı
Enrico Gruner 🔥3 yıl önce

"Upcoming CSS capability" can you share a link to the spec? 🤤

Joe Vans profil fotoğrafı
Joe Vans3 yıl önce

Can you dive a little deeper into what is happening prior to this flag change? Is it as simple as "display:none is in the wrong priority compared to transitions so there for display:none changes after the transitions"?

Una 🇺🇦 profil fotoğrafı
Una 🇺🇦3 yıl önce

Right, if you animate to `display: none` now, it'll apply immediately and won't be a part of the transition. Additionally, there's no way to specify what the pre-animation states are when animating *from* it

Benzer Videolar