I have a parent element (div # workarea) that has four children: figure#start
, p#first
, figure#start2
and p#second
:
<div id="workarea">
<h1 id="title">Área de Testes</h1>
<figure id="start">
<img id="gear2" src="img/gear.png">
</figure>
<p id="first"></p>
<figure id="start2">
<img id="gear3" src="img/gear.png">
</figure>
<p id="second"></p>
</div>
I would like to have the first child ( figure#start2
) get a figure#start
when hover is on the third child ( transform:rotate(Xdeg)
).
How could this be possible?
I'll apply the style in this example , where figure#start
is the first gear and figure#start2
is the second gear. And your sequential siblings ( p#first
and p#second
) correspond to bars that get translateX
.