Загрузка видео...
Не удалось загрузить видео
Container scroll-state queries let you apply styles to elements based on the container's scroll state — stuck, snapped, or scrollable👇 .section-header { ... container-type: scroll-state; container-name: sticky-hd; } @ container sticky-hd scroll-state(stuck: top) { ... } #CSS
27,087 просмотров • 6 месяцев назад •via X (Twitter)
Комментарии: 6

Omar6 месяцев назад
is this available on all browsers already?

Bharat Kara6 месяцев назад
Yes, its available

Shefali6 месяцев назад
Thanks for the tip!

Bharat Kara6 месяцев назад
Appreciate it, curious how you are gonna use this?

Bilko - BG Labs6 месяцев назад
the stuck/snapped/scrollable triad is the part that quietly unlocks a ton of UI patterns — sticky headers that restyle on stick without a scroll listener is the one i keep reaching for.

Franklin Williams6 месяцев назад
Unfortunately, it is only supported in Chromium based browsers except for both Safari and Firefox.

