<div class="parentDiv">
<div class="element1">Div 1</div>
<div class="element2">Div 2</div>
<div class="element3">Div 3</div>
</div>
.parentDiv:hover > .element2 {
color: red;
}
HTML
CSS
JS