Показать сообщение отдельно

  #6  
Старый 04.02.2024, 00:33
un1k
Познающий
Регистрация: 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
 
Ответить с цитированием