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/