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_01thebackground-colorofinner_02andinner_03should change. - When hovering over
inner_02thebackground-colorofinner_01andinner_03should change. - When hovering over
inner_03thebackground-colorofinner_01andinner_02should 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 :)