
04.02.2024, 00:33
|
|
Познающий
Регистрация: 04.10.2023
Сообщений: 41
С нами:
1376200
Репутация:
0
|
|
I want to participate but is hard to understand russian))
The css to do this would be the use of :has and ~
:has To select the previous siblings:
span:has(~ span:ishover)) {
opacity: 0;
}
~ To select the next siblings:
span:hover ~ span {
opacity: 0;
}
https://codepen.io/ofuwdwfe-the-animator/pen/wvOjxrP
|
|
|