I have a setup like this:
<div id="wrapper">
<div id="inner_01"></div>
<div id="inner_02"></div>
<div id="inner_03"></div>
</div>
And I want to build a transition with the following properties:
- When hovering over
inner_01
thebackground-color
ofinner_02
andinner_03
should change. - When hovering over
inner_02
thebackground-color
ofinner_01
andinner_03
should change. - When hovering over
inner_03
thebackground-color
ofinner_01
andinner_02
should change.
This is my current approach:
Hover over
inner_01
:#wrapper #inner_01:hover ~ #inner_02 { /* Transition * transition: background 5s; /* Color */ background: #ffee00; } /* Don't know how to effect inner_03 */
Hover over
inner_02
:#wrapper #inner_02:hover ~ #inner_03 { /* Transition * transition: background 5s; /* Color */ background: #ffee00; } /* Don't know how to effect inner_01 */
Hover over
inner_03
:/* Don't know how to effect inner_01/inner_02 */
I think I'm missing some kind of CSS-selector... Thanks for the help :)