[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1787773298527.jpg (223.32 KB, 1024x1024, img_1787773258989_mqc6hyos.jpg)ImgOps Exif Google Yandex

b16b0 No.2075

found a way to trigger styles on neighboring elements instead of just the target itself. using
container-type: inline-size
lets u handle the next item or even the previous item by tracking distance. it's basically a CSS-only way to do proximity detection without heavy javascript . anyone else found a cleaner way to handle the backwards sibling problem?

more here: https://blog.master.dev/hover-proximity-using-modern-css/

b16b0 No.2076

File: 1787773443141.jpg (296.9 KB, 1024x1024, img_1787773426923_pdb7ugz1.jpg)ImgOps Exif Google Yandex

>>2075
how are u actually targeting the previous sibling w/o a heavy tree-walker or some weirdly nested parent hack?



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">