4
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’d like to make sure that by setting up the third child (figure#start2
), the first son (figure#start
) acquire a transform:rotate(Xdeg)
.
How would that be possible?
I’ll apply the style in this example, where the figure#start
is the first gear and the figure#start2
is the second gear. And his sequential brothers (p#first
and p#second
) correspond to bars that acquire a translateX
.
That’s what I figured! Thank you very much for the reply!
– Thiago Benine