CSS Selectors
|= {{c1::starts w/ "link-" or exactly "link"}}
^= {{c2::starts w/ "link"}}
$= {{c3::ends w/ "link"}}
*= {{c4::looks for "link" a/wh}}
:has
¶
https://codesandbox.io/s/bytes-has-selector-lg94f7
????
li {
display: block;
cursor: pointer;
transition: opacity 0.3s ease-in-out;
}
li:has(~ li:hover),
li:hover ~ li {
opacity: 0;
}
Last update:
2023-04-24