Is there a way to trigger an action on a div, if the hover occurred on another one, and the divs are not inside each other?
This only seems to work for me if the divs are inside each other, otherwise nothing happens.
.blockA {
width: 64px;
height: 64px;
background-color: red;
}
.blockB {
width: 64px;
height: 64px;
background-color: orange;
transition: 0.5s ease-out 100ms;
}
.blockA:hover .blockB {
background-color: blue;
}
<div class="blockA"></div>
<div class="blockB"></div>